J2EETransactionManager tm =
J2EETransactionManagerImpl.createTransactionManager();
sw.setTransactionManager(tm);
// Create the Injection Manager and set it on the switch.
InjectionManager injectionMgr = new InjectionManagerImpl();
sw.setInjectionManager(injectionMgr);
return result;
}