public void dispatch(N notification, NotifierCallback notifier) { if (pair.getSelector().test(notification)) { try { notifier.notify(pair.getListener(), notification); } catch (Throwable e) { // Exceptions or errors from listeners do not affect the notification processing LOGGER.info("NotificationListener {} was unable to fire notification {} due to an exception: {}.", pair.getListener(), notification, e); } } }