if (((VersionImpl)version).getInternalName().equals(Constants.JCR_ROOTVERSION))
throw new VersionException("It is illegal to call restore() on jcr:rootVersion");
QPath destPath = locationFactory.parseRelPath(relPath).getInternalPath();
NodeImpl destParent =
(NodeImpl)dataManager.getItem(nodeData(), destPath.makeParentPath().getEntries(), false, ItemType.NODE);
if (destParent == null)
throw new PathNotFoundException("Parent not found for " + relPath);
if (!destParent.isNode())