EventIterator<Event> events = new EventIterator<Event>(
beforeTree.getNodeState(), afterTree.getNodeState(), path,
provider.getFilter(beforeTree, afterTree, treePermission),
new JcrListener(beforeTree, afterTree, namePathMapper, info));
if (events.hasNext()) {
eventListener.onEvent(new EventIteratorAdapter(events));
}
}
} catch (Exception e) {
log.warn("Error while dispatching observation events", e);
}