if (corrSession.getWorkspace().getNodeTypesHolder()
.isNodeType(Constants.MIX_REFERENCEABLE, ancestor.getPrimaryTypeName(), ancestor.getMixinTypeNames()))
{
NodeData corrAncestor = (NodeData)corrDataManager.getItemData(ancestor.getIdentifier());
if (corrAncestor == null)
throw new ItemNotFoundException("No corresponding path for ancestor "
+ ancestor.getQPath().getAsString() + " in " + corrSession.getWorkspace().getName());
NodeData corrNode =
(NodeData)corrDataManager.getItemData(corrAncestor, myPath.getRelPath(myPath.getDepth() - i),
ItemType.NODE);
if (corrNode != null)
return corrNode;
}
}
}
NodeData corrNode = (NodeData)corrDataManager.getItemData(myPath);
if (corrNode != null)
{
return corrNode;
}
throw new ItemNotFoundException("No corresponding path for " + getPath() + " in "
+ corrSession.getWorkspace().getName());
}