code: public void save(ItemStateChangesLog changes) throws InvalidItemStateException, UnsupportedOperationException,
        RepositoryException
     {
        for (ItemState itemState : changes.getAllStates())
        {
           if (itemState.isAdded())
              sessionDataManager.update(itemState, false);
           else if (itemState.isDeleted())
              sessionDataManager.delete(itemState.getData(), itemState.getAncestorToSave());
        }
     }
docs: {@inheritDoc}