if (transactionMode != TransactionMode.DISABLED) {
transactionProvider = getTransactionProvider();
// creates the transaction context
TransactionContext transactionContext = transactionContextInstance.get();
transactionContext.activate();
lifecycleEvent.fire(new BeforeTransactionStarted());
transactionProvider.beginTransaction(new TransactionalTestImpl(getTransactionManager(beforeTest)));