}
String systemId = resourceIdentifier.getLiteralSystemId();
String location = XMLCatalog.getInstance().resolveEntityLocation(publicId, systemId);
if (location != null)
{
LazyURLInputStream is = new LazyURLInputStream(location);
XMLInputSource inputSource = new XMLInputSource(publicId, systemId, systemId, is, null);
return inputSource;
}
// otherwise return null to tell the parser to locate the systemId as a URI
return null;