code: public void cancelMerge(Version version) throws VersionException, InvalidItemStateException,
        UnsupportedRepositoryOperationException, RepositoryException
     {
        if (!session.getAccessManager().hasPermission(getACL(),
           new String[]{PermissionType.ADD_NODE, PermissionType.SET_PROPERTY}, session.getUserState().getIdentity()))
        {
           throw new AccessDeniedException("Access denied: cancel merge operation " + getPath() + " for: "
              + session.getUserID() + " item owner " + getACL().getOwner());
        }
  
        checkValid();
  
        PlainChangesLog changesLog = new PlainChangesLogImpl(session);
  
        removeMergeFailed(version, changesLog);
  
        dataManager.getTransactManager().save(changesLog);
     }
docs: {@inheritDoc}