local = new InputSource( is );
local = new InputSource(is); local.setSystemId(realUrl.toExternalForm());
    public InputSource resolveEntity( String publicID,                                      String systemID )        throws SAXException {        InputSource local = null;        String url = (String)entities.get( publicID );        if ( url != null ) {            InputStream is = GeneralUtil.openStreamFromClasspath( this, url );                        if ( is == null ) {                XRLog.xmlEntities( Level.WARNING,                        "Can't find a local reference for Entity for public ID: " + publicID +                        " and expected to. The local URL should be: " + url + ". Not finding " +                        "this probably means a CLASSPATH configuration problem; this resource " +                        "should be included with the renderer and so not finding it means it is " +                        "not on the CLASSPATH, and should be. Will let parser use the default in " +                        "this case." );            }            local = new InputSource( is );            XRLog.xmlEntities(Level.FINE, "Entity public: " + publicID + " -> " + url +            (local == null ? ", NOT FOUND" : " (local)"));        } else {            XRLog.xmlEntities("Entity public: " + publicID + ", no local mapping. Parser will probably pull from network.");        }        return local;    }