public static String parseRoot ( String zookeepers ) { int slashIndex = zookeepers . indexOf ( "/" ) ; if ( slashIndex != - 1 ) { return zookeepers . substring ( slashIndex ) . trim ( ) ; } return "/" ; }
Parses chroot section of Zookeeper connection string