TransactionalTest transactionalTest = new TransactionalTestImpl(getTransactionManager(afterTest));
if (rollbackRequired(afterTest)) {
transactionProvider.rollbackTransaction(transactionalTest);
} else {
transactionProvider.commitTransaction(transactionalTest);
}
} finally {
lifecycleEvent.fire(new AfterTransactionEnded());
transactionContextInstance.get().destroy();