@SuppressWarnings("unchecked") private void applyToGroupAndSubGroups(final AST2BOpContext context,final QueryRoot queryRoot,final QueryHintScope scope,final GraphPatternGroup<IGroupMemberNode> group,final String name,final String value){
  for (  IGroupMemberNode child : group) {
    _applyQueryHint(context,queryRoot,scope,(ASTBase)child,name,value);
    if (child instanceof GraphPatternGroup<?>) {
      applyToGroupAndSubGroups(context,queryRoot,scope,(GraphPatternGroup<IGroupMemberNode>)child,name,value);
    }
  }
  _applyQueryHint(context,queryRoot,scope,(ASTBase)group,name,value);
}

@ SuppressWarnings ( "unchecked" ) private void applyToGroupAndSubGroups ( final AST2BOpContext context , final QueryRoot queryRoot , final QueryHintScope scope , final GraphPatternGroup < IGroupMemberNode > group , final String name , final String value ) { for ( IGroupMemberNode child : group ) { _applyQueryHint ( context , queryRoot , scope , ( ASTBase ) child , name , value ) ; if ( child instanceof GraphPatternGroup < ? > ) { applyToGroupAndSubGroups ( context , queryRoot , scope , ( GraphPatternGroup < IGroupMemberNode > ) child , name , value ) ; } } _applyQueryHint ( context , queryRoot , scope , ( ASTBase ) group , name , value ) ; }
apply the query hint to the group and , recursively , to any sub - groups .
