Hi Kazuki,
I have added a comment.
Basically, Spring batch's processor will provide a writable model to writer. In the answer, given by you, it is expected to pass a "record" field, which I don't have.
This seems equivalent to Injecting Mapper interface and directly calling insert method on it.