docs: public void commit() throws HeuristicRollbackException, RollbackException, HeuristicMixedException, SystemException {
          Transaction transaction = currentTransaction();
          if (transaction == null) {
              throw new IllegalStateException("No active transaction");
          }
          transaction.commit();     
      }