public Element addElementToRegistry(String hashcode,Element element){
  if (hashcode == null || element == null)   return (this);
  element.setFilterState(getFilterState());
  if (ECSDefaults.getDefaultPrettyPrint() != element.getPrettyPrint())   element.setPrettyPrint(getPrettyPrint());
  registry.put(hashcode,element);
  if (!registryList.contains(hashcode))   registryList.addElement(hashcode);
  return (this);
}

public Element addElementToRegistry ( String hashcode , Element element ) { if ( hashcode == null || element == null ) return ( this ) ; element . setFilterState ( getFilterState ( ) ) ; if ( ECSDefaults . getDefaultPrettyPrint ( ) != element . getPrettyPrint ( ) ) element . setPrettyPrint ( getPrettyPrint ( ) ) ; registry . put ( hashcode , element ) ; if ( ! registryList . contains ( hashcode ) ) registryList . addElement ( hashcode ) ; return ( this ) ; }
registers an element in the head element list
