static String findNode ( final List < String > children , final String path , final String protectedId ) { final String protectedPrefix = getProtectedPrefix ( protectedId ) ; String foundNode = Iterables . find ( children , new Predicate < String > ( ) { @ Override public boolean apply ( String node ) { return node . startsWith ( protectedPrefix ) ; } } , null ) ; if ( foundNode != null ) { foundNode = ZKPaths . makePath ( path , foundNode ) ; } return foundNode ; }
Attempt to find the znode that matches the given path and protected id