container/build/as7/extension/src/main/java/org/restcomm/slee/container/build/as7/deployment/SleeDeployerEntityResolver.java
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
    {
        URL resourceURL = resources.get(publicId);

        if(resourceURL != null) {
            InputStream resourceStream = resourceURL.openStream();
            InputSource is = new InputSource(resourceStream);
            is.setPublicId(publicId);
            is.setSystemId(resourceURL.toExternalForm());
            return is;
        }

        return null;
    }
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
    {
        URL resourceURL = resources.get(publicId);

        if(resourceURL != null) {
            InputStream resourceStream = resourceURL.openStream();
            InputSource is = new InputSource(resourceStream);
            is.setPublicId(publicId);
            is.setSystemId(resourceURL.toExternalForm());
            return is;
        }

        return null;
    }
public InputSource resolveEntity ( String publicId , String systemId ) throws SAXException , IOException { URL resourceURL = resources . get ( publicId ) ; if ( resourceURL != null ) { InputStream resourceStream = resourceURL . openStream ( ) ; InputSource is = new InputSource ( resourceStream ) ; is . setPublicId ( publicId ) ; is . setSystemId ( resourceURL . toExternalForm ( ) ) ; return is ; } return null ; }
Creates an InputSource with a SystemID corresponding to a local dtd file.

@param publicId The public identifier of the external entity being referenced, or null if none was supplied.
@param systemId The system identifier of the external entity being referenced (This is a dummy parameter and is overridden by the resource names
earlier specified by the <code>registrerResource</code>) method to correspond to the publicID.
@return An InputSource object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier.
@exception org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception.
@exception java.io.IOException A Java-specific IO exception, possibly the result of creating a new InputStream or Reader for the InputSource.
Creates an InputSource with a SystemID corresponding to a local dtd file .