srcParentNode = srcNode.parent();
}
// Check if versionable ancestor is not checked-in
if (!srcParentNode.checkedOut())
{
throw new VersionException("Parent or source Node or its nearest ancestor is checked-in");
}
if (!srcNode.checkLocking())
{
throw new LockException("Source parent node " + srcNode.getPath() + " is locked ");