*/
protected boolean beforeExecute(ServerStatement stmt) {
ServerStatement.TransactionMode transactionMode = stmt.getTransactionMode();
boolean localTransaction = false;
if(transaction != null && transactionMode == ServerStatement.TransactionMode.IMPLICIT_COMMIT_AND_NEW){
warnClient(new ImplicitlyCommittedException());
commitTransaction();
}
if (transaction != null) {
if(transactionMode == ServerStatement.TransactionMode.IMPLICIT_COMMIT) {
warnClient(new ImplicitlyCommittedException());
commitTransaction();
} else {
// Use global transaction.
transaction.checkTransactionMode(transactionMode);
}