/** * @see org.w3c.dom.ls.LSResourceResolver#resolveResource(String, String, * String, String, String) */ @Override public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) { LSInput lsInput = null; try { URL resource = new URL(systemId); InputStream is = resource.openStream(); lsInput = new LSInputImpl(is); } catch (IOException e) { LOG.debug("Referenced external file {} could not be found. Falling back to " + "default resolution.", systemId); } return lsInput; } }