if (configuration.invocationBatching().enabled())
return (T) new TransactionTable();
if (!configuration.transaction().useSynchronization()) {
if (configuration.transaction().recovery().enabled()) {
return (T) new RecoveryAwareTransactionTable();
} else {
return (T) new XaTransactionTable();
}
} else return (T) new TransactionTable();