private void fillNodesInScope(SiteNode rootNode,List<SiteNode> nodesList){
  @SuppressWarnings("unchecked") Enumeration<SiteNode> en=rootNode.children();
  while (en.hasMoreElements()) {
    SiteNode sn=en.nextElement();
    if (isInScope(sn))     nodesList.add(sn);
    fillNodesInScope(sn,nodesList);
  }
}

private void fillNodesInScope ( SiteNode rootNode , List < SiteNode > nodesList ) { @ SuppressWarnings ( "unchecked" ) Enumeration < SiteNode > en = rootNode . children ( ) ; while ( en . hasMoreElements ( ) ) { SiteNode sn = en . nextElement ( ) ; if ( isInScope ( sn ) ) nodesList . add ( sn ) ; fillNodesInScope ( sn , nodesList ) ; } }
fills a given list with nodes in scope , searching recursively .
