Sample code for Spring events.