ItemImpl parentItem =
dataManager.getItem(nodeData(), itemPath.makeParentPath().getInternalPath().getEntries(), false,
ItemType.UNKNOWN);
if (parentItem == null)
throw new PathNotFoundException("Parent not found for " + itemPath.getAsString(true));
if (!parentItem.isNode())
throw new ConstraintViolationException("Parent item is not a node " + parentItem.getPath());
NodeImpl parent = (NodeImpl)parentItem;
InternalQName name = itemPath.getName().getInternalName();