} else {
url = uri.toURL();
}
InputStream is = url.openStream();
try {
InputStream2Node transformer = new InputStream2Node();
return (Document)transformer.transform(is, null);
} finally {
is.close();
}
} catch (Exception e) {
throw new LoaderException(e);