private boolean processNotifiers(Event event, List<? extends EventHandlerType> notifiers, NotificationManager notificationManager, Task task, OperationResult result) throws SchemaException { for (EventHandlerType notifier : notifiers) { boolean shouldContinue = ((NotificationManagerImpl) notificationManager).getEventHandler(notifier).processEvent(event, notifier, notificationManager, task, result); if (!shouldContinue) { return false; } } return true; } }
public boolean processEvent(Event event, EventHandlerType eventHandlerType, Task task, OperationResult result) { try { return getEventHandler(eventHandlerType).processEvent(event, eventHandlerType, this, task, result); } catch (SchemaException e) { LoggingUtils.logException(LOGGER, "Event couldn't be processed; event = {}", e, event); return true; // continue if you can } }