if (!checkLocking())
{
throw new LockException("Node " + getPath() + " is locked ");
}
SessionChangesLog changes = new SessionChangesLog(session);
String srcPath;
try
{
srcPath = getCorrespondingNodePath(srcWorkspaceName);
ItemDataRemoveVisitor remover =
new ItemDataRemoveVisitor(session.getTransientNodesManager(), null, session.getWorkspace()
.getNodeTypesHolder(), session.getAccessManager(), session.getUserState());
nodeData().accept(remover);
changes.addAll(remover.getRemovedStates());
}
catch (ItemNotFoundException e)
{
LOG.debug("No corresponding node in workspace: " + srcWorkspaceName);
return;