logger.info(new StringBuilder("Invoking method: ").append(m));
response = (AjaxResponse) m.invoke(this, new Object[]{event});
}
else {
logger.error("You need to call the supports() method first!");
throw new UnsupportedEventException("You need to call the supports() method first!");
}
}
catch(IllegalAccessException ex) {
logger.error(ex.getMessage(), ex);
logger.error("Cannot handle the given event with id: " + id);
throw new UnsupportedEventException("Cannot handle the given event with id: " + id, ex);
}
catch(InvocationTargetException ex) {
logger.error(ex.getMessage(), ex);
logger.error("Exception while handling the given event with id: " + id);
throw new EventHandlingException("Exception while handling the given event with id: " + id, ex);