path = requestPath.substring(1).split("/");
} else {
path = requestPath.split("/");
}
NodeContext nodeContext = navService.loadNode(NodeModel.SELF_MODEL, navContext,
GenericScope.branchShape(path, Scope.ALL), null);
boolean found = true;
String lastCommonAncestor = "/";
for (String nodeName : path) {
nodeContext = nodeContext.get(nodeName);
if (nodeContext == null) {
found = false;
break;
} else {
if (lastCommonAncestor.equals("/")) {
lastCommonAncestor += nodeContext.getName();
} else {
lastCommonAncestor += "/" + nodeContext.getName();
}
}
}
if (found == true) {