@Override
public void initialize() {
if (getTestKit() != null) {
Iterator<TestMixIn> dependencies = getTestKit().getOptionalDependencies(this).iterator();
while (_jtaEnvironmentBean == null && dependencies.hasNext()) {
TestMixIn testMixIn = dependencies.next();
if (testMixIn instanceof TransactionMixInParticipant) {
try {
_logger.debug("Trying to locate JTA environment using " + testMixIn);
_jtaEnvironmentBean = ((TransactionMixInParticipant) testMixIn).locateEnvironmentBean();
} catch (Throwable e) {