/* 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)){
throw new IllegalArgumentException("event must be of type ApplicationEvent");
}
if(event instanceof NewApplicationEvent){