private static boolean containsChroot(String zkHost){
  return zkHost.contains("/");
}

private static boolean containsChroot ( String zkHost ) { return zkHost . contains ( "/" ) ; }
validates if zkhost contains a chroot . see http : / / zookeeper . apache . org / doc / r3 . 2 . 2 / zookeeperprogrammers . html # ch_zksessions
