private boolean isContainsNodesInContext(SiteNode node){
  if (isInContext(node)) {
    return true;
  }
  @SuppressWarnings("unchecked") Enumeration<SiteNode> en=node.children();
  while (en.hasMoreElements()) {
    SiteNode sn=en.nextElement();
    if (isContainsNodesInContext(sn)) {
      return true;
    }
  }
  return false;
}

private boolean isContainsNodesInContext ( SiteNode node ) { if ( isInContext ( node ) ) { return true ; } @ SuppressWarnings ( "unchecked" ) Enumeration < SiteNode > en = node . children ( ) ; while ( en . hasMoreElements ( ) ) { SiteNode sn = en . nextElement ( ) ; if ( isContainsNodesInContext ( sn ) ) { return true ; } } return false ; }
tells whether or not the given node or any of its child nodes are in context .
