public void addIncludedAttributes(final String elementName,final List attrNames){
  List attrNamesList=null;
  if ((attrNamesList=(List)_includedElementAttrsMap.get(elementName)) == null) {
    attrNamesList=new ArrayList();
  }
  attrNamesList.addAll(attrNames);
  _includedElementAttrsMap.put(elementName,attrNamesList);
}

public void addIncludedAttributes ( final String elementName , final List attrNames ) { List attrNamesList = null ; if ( ( attrNamesList = ( List ) _includedElementAttrsMap . get ( elementName ) ) == null ) { attrNamesList = new ArrayList ( ) ; } attrNamesList . addAll ( attrNames ) ; _includedElementAttrsMap . put ( elementName , attrNamesList ) ; }
adds attributes to be included in the element comparison .
