foundNode = ((NotificationNodeContainer) parent).getNotifications().stream() .filter(notif -> current.equals(notif.getQName())).findFirst().orElse(null); if (foundNode != null && nextPath.iterator().hasNext()) {
foundNode = ((NotificationNodeContainer) parent).getNotifications().stream() .filter(notif -> current.equals(notif.getQName())).findFirst().orElse(null); if (foundNode != null && nextPath.iterator().hasNext()) {
child = tryFind(((NotificationNodeContainer) node).getNotifications(), qname).orElse(null);
child = tryFind(((NotificationNodeContainer) node).getNotifications(), qname).orElse(null);