code: protected void rollback(WorkspaceStorageConnection conn)
     {
        try
        {
           if (conn != null)
           {
              conn.rollback();
           }
        }
        catch (IllegalStateException e)
        {
           LOG.error("Can not rollback connection", e);
        }
        catch (RepositoryException e)
        {
           LOG.error("Can not rollback connection", e);
        }
     }
docs: Rollback data.