transactionCount = 1;
    public synchronized void ensureInTransaction() throws SQLException {        synchronized (mc) {            try {                if (inTransaction()) {                    autoTransaction = false;                    return;                }                //We have to start our own transaction                getLocalTransaction().begin();                autoTransaction = true;            } catch (ResourceException re) {                throw new FBSQLException(re);            }        }    }