docs: public final void setTransactionOutcome(boolean commit, GlobalTransaction globalTransaction, boolean local) {
        TransactionStatistics txs = getTransactionStatistic(globalTransaction, local);
        if (txs == null) {
           log.outcomeOnUnexistingTransaction(globalTransaction == null ? "null" : globalTransaction.globalId(),
                                              commit ? "COMMIT" : "ROLLBACK");
           return;
        }
        txs.setOutcome(commit);
     }