if (path.getLastSegment().hasIndex()) {
return getNode(path);
}
// We can't tell from the name, so ask for an item ...
try {
return cache.findJcrItem(null, rootPath, path.relativeTo(rootPath));
} catch (ItemNotFoundException e) {
throw new PathNotFoundException(e.getMessage(), e);
}
}