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);
if (destParent == null)
throw new PathNotFoundException("Parent not found for " + relPath);
if (!destParent.isNode())
throw new ConstraintViolationException("Parent item is not a node. Rel path " + relPath);