if (isTransactionEnabled(beforeTest)) {
TransactionContext transactionContext = transactionContextInstance.get();
transactionContext.activate();
lifecycleEvent.fire(new BeforeTransactionStarted());
getTransactionProvider().beginTransaction(new TransactionalTestImpl(getTransactionManager(beforeTest)));
lifecycleEvent.fire(new AfterTransactionStarted());
}