System.out.println( ",1: " + (time1 == 0 || time2 == 0 ? "" : (time2 - time1)) + ",2: " + (time2 == 0 || time3 == 0 ? "" : (time3 - time2)) + ",3: " + (time3 == 0 || time4 == 0 ? "" : (time4 - time3)) + ",4: " + (time4 == 0 || time5 == 0 ? "" : (time5 - time4)) + ",5: " + (time5 == 0 || time6 == 0 ? "" : (time6 - time5)) + ",6: " + (time6 == 0 || time7 == 0 ? "" : (time7 - time6)) + ",7: " + (time7 == 0 || time8 == 0 ? "" : (time8 - time7)) + ",8: " + (time8 == 0 || time9 == 0 ? "" : (time9 - time8)) );
    protected int performValidCommit() {        // in memory everything is ok, but we need to check against the db        PersistenceBroker pb = getOJBBroker();        try {            if (!pb.isInTransaction()) {                pb.beginTransaction();            }            int txNumber = getNumber();            try {                // the updateFromTxLogs is made with the txNumber minus 1 to ensure that the select                // for update will return at least a record, and, therefore, lock the record                // otherwise, the mysql server may allow the select for update to continue                // concurrently with other executing commits in other servers                //if (TransactionChangeLogs.updateFromTxLogsOnDatabase(pb, txNumber - 1, true) != txNumber) {                if (TransactionChangeLogs.updateFromTxLogsOnDatabase(pb, txNumber, true) != txNumber) {                    // the cache may have been updated, so perform the                    // tx-validation again                    if (!validateCommit()) {                        throw new jvstm.CommitException();                    }                }            } catch (SQLException sqlex) {                throw new CommitException();            } catch (LookupException le) {                throw new Error("Error while obtaining database connection", le);            }            txNumber = super.performValidCommit();            // ensure that changes are visible to other TXs before releasing            // lock            try {                pb.commitTransaction();            } catch (Throwable t) {                t.printStackTrace();                System.out.println("Error while commiting exception. Terminating server.");                System.err.flush();                System.out.flush();                System.exit(-1);            }            pb = null;            return txNumber;        } finally {            if (pb != null) {                pb.abortTransaction();            }        }    }