How to write Custom Spring Callback Methods?