question: private boolean hasNodesInContext ( SiteNode node ) { @ SuppressWarnings ( "unchecked" ) Enumeration < SiteNode > en = node . children ( ) ; while ( en . hasMoreElements ( ) ) { SiteNode sn = en . nextElement ( ) ; if ( isInContext ( sn ) ) { return true ; } if ( hasNodesInContext ( sn ) ) { return true ; } } return false ; }
target:  Tells whether or not there's at least one node from the sites tree in context. <p> The whole tree is traversed until is found one node in context.