} else if (name instanceof Path) { // a file resource
Path file = (Path)name;
FileSystem fs = FileSystem.getNamed("local", this);
if (fs.exists(file)) {
LOG.info("parsing " + file);
InputStream in = new BufferedInputStream(fs.openRaw(file));
try {
doc = builder.parse(in);
} finally {
in.close();
}