throw new LockException("There are no permission to unlock the node " + getPath());
}
if (dataManager.hasPendingChanges(getInternalPath()))
{
throw new InvalidItemStateException("Node has pending unsaved changes " + getPath());
}
// session.checkPermission(getPath(), PermissionType.SET_PROPERTY) is not used because RepositoryException
// is wrapped into AccessControlException
if (!session.getAccessManager().hasPermission(getACL(), new String[]{PermissionType.SET_PROPERTY},