// TODO: perfect dependency to be injected via Spring framework --rk
EventSystem eventSystem = EventSystem.getInstance();
/* Add the recorder to record the downtimes to the DB */
eventSystem.addListener(recorder, ApplicationEvent.class);
/* application event listener to add */
eventSystem.addListener(new EventListener(){
public void handleEvent(EventObject event) {
if(!(event instanceof ApplicationEvent)){