try {
if (path != null &&
(path.startsWith(LOCALURI) || path.startsWith(SHORTLOCALURI))) {
final XmldbURL url = new XmldbURL(path);
final EmbeddedInputStream eis = new EmbeddedInputStream(bPool, url);
streamsource.setInputStream(eis);
streamsource.setSystemId(path);
} else {
final InputStream is = new URL(path).openStream();