if (handlerService == null) {
return;
}
try {
handlerService.handleEvent(event);
} catch (Throwable t) {
// log/handle any Throwable thrown by the listener
log.log(LogService.LOG_ERROR, "Exception while dispatching event "+event+" to handler "+handlerService, t);
}
}