code: @Override
      public void commit() throws DataCorruptedException, IOException, IllegalStateException{
          try {
              tranManager.commit(t1);
          } catch (RollbackException e) {
              rollback();
              throw new IOException("Error trying to commit transaction.", e);
          } catch (TransactionException e) {
              rollback();
              throw new IOException("Error trying to commit transaction.", e);
          }
      }
docs: Commits work done.