EventListener listener = (EventListener) entry.getKey();
EventFilter filter = (EventFilter) entry.getValue();
FilteredEventIterator eventIter = new FilteredEventIterator(eventBundle, filter, resolver, valueFactory, wspManager.getIdFactory());
if (eventIter.hasNext()) {
try {
listener.onEvent(eventIter);
} catch (Throwable t) {
log.warn("EventConsumer threw exception: " + t.toString());
log.debug("Stacktrace: ", t);
// move on to the next listener
}