public boolean isElement(List<String> requestPrefixList,String requestedElementName){
  if ((requestPrefixList != null) && (requestedElementName != null)) {
    for (    String requestPrefix : requestPrefixList) {
      if (isElement(requestPrefix,requestedElementName)) {
        return true;
      }
    }
  }
  return false;
}

public boolean isElement ( List < String > requestPrefixList , String requestedElementName ) { if ( ( requestPrefixList != null ) && ( requestedElementName != null ) ) { for ( String requestPrefix : requestPrefixList ) { if ( isElement ( requestPrefix , requestedElementName ) ) { return true ; } } } return false ; }
checks if this element matches the requested .
