added check for the event path  to decrease the amount of Session.getNode() calls in the DefaultFilter