implement sample ApplicationEventListener