docs: protected void prepareCommit() throws TransactionAbortedException, LockNotGrantedException
      {
          if (txStatus == Status.STATUS_MARKED_ROLLBACK)
          {
              throw new TransactionAbortedExceptionOJB("Prepare Transaction: tx already marked for rollback");
          }
          if (txStatus != Status.STATUS_ACTIVE)
          {
              throw new IllegalStateException("Prepare Transaction: tx status is not 'active', status is " + TxUtil.getStatusString(txStatus));
          }
          try
          {
              txStatus = Status.STATUS_PREPARING;
              doWriteObjects(false);
              txStatus = Status.STATUS_PREPARED;
          }
          catch (RuntimeException e)
          {
              log.error("Could not prepare for commit", e);
              txStatus = Status.STATUS_MARKED_ROLLBACK;
              throw e;
          }
      }