+
+ if(filter == null || filter.filterNotification(parsedNotification).isPresent()) {
+ salFacade.onNotification(parsedNotification);
+ }
+ }
+
+ synchronized void addNotificationFilter(final NotificationFilter filter) {
+ this.filter = filter;
+ }
+
+ synchronized void onRemoteSchemaDown() {
+ queue.clear();
+ passNotifications = false;
+ messageTransformer = null;
+ }
+
+ static interface NotificationFilter {
+
+ Optional<DOMNotification> filterNotification(DOMNotification notification);