private void removeEventMethodHandler(Object object, Method method) {
checkViewEngine();
EventMethod annotation = method.getAnnotation(EventMethod.class);
String id = annotation.value();
EventId<EventObject> eventType = EventId.ev(id);
EventMethodListener listener = new EventMethodListener(object, method, annotation.mode(), annotation.eager());
viewEngine.removeListener(eventType, listener);
}
private void checkViewEngine() {
if (viewEngine == null) {