Path parentPath = pathCache.getPath(parent);
return wsCache.pathFactory().create(parentPath, getSegment(wsCache));
}
// check that the node hasn't been removed in the meantime
if (wsCache.getNode(key) == null) {
throw new NodeNotFoundException(key);
}
// This is the root node ...
return wsCache.rootPath();
}