public Iterator<TreeNode> findChildren(String name){
  List<TreeNode> results;
  if (children == null)   results=Collections.emptyList();
 else {
    results=new ArrayList<TreeNode>();
    for (    TreeNode item : children) {
      if (name.equals(item.getName()))       results.add(item);
    }
  }
  return results.iterator();
}

public Iterator < TreeNode > findChildren ( String name ) { List < TreeNode > results ; if ( children == null ) results = Collections . emptyList ( ) ; else { results = new ArrayList < TreeNode > ( ) ; for ( TreeNode item : children ) { if ( name . equals ( item . getName ( ) ) ) results . add ( item ) ; } } return results . iterator ( ) ; }
return an iterator over all children of this node that have the specified name . if there are no such children , an empty iterator is returned .
