src/main/java/org/jboss/util/xml/JBossEntityResolver.java
public synchronized void registerLocalEntity(String id, String dtdOrSchema)
   {
      if( localEntities == null )
         localEntities = new ConcurrentHashMap();
      localEntities.put(id, dtdOrSchema);
   }
public synchronized void registerLocalEntity(String id, String dtdOrSchema)
   {
      if( localEntities == null )
         localEntities = new ConcurrentHashMap();
      localEntities.put(id, dtdOrSchema);
   }
public synchronized void registerLocalEntity ( String id , String dtdOrSchema ) { if ( localEntities == null ) localEntities = new ConcurrentHashMap ( ) ; localEntities . put ( id , dtdOrSchema ) ; }
Register the mapping from the public id/system id to the dtd/xsd file
name. This overwrites any existing mapping.

@param id  the DOCTYPE public id or system id such as
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
@param dtdOrSchema the simple dtd/xsd file name, "ejb-jar.dtd"
Register the mapping from the public id / system id to the dtd / xsd file name . This overwrites any existing mapping .