public void printNodes(String subString) throws Exception {
  List<String> nodeList=new ArrayList<String>();
  getNodesBySubString("/",subString,nodeList);
  ZkTree tree=new ZkTree();
  for (  String node : nodeList) {
    tree.insert(node);
  }
  printTree(tree);
}

public void printNodes ( String subString ) throws Exception { List < String > nodeList = new ArrayList < String > ( ) ; getNodesBySubString ( "/" , subString , nodeList ) ; ZkTree tree = new ZkTree ( ) ; for ( String node : nodeList ) { tree . insert ( node ) ; } printTree ( tree ) ; }
print all nodes , which path contains the given substring , like a tree .
