protected void createTransactionLayer() throws Exception {
TransactionManagerFactoryBean tmcf = new TransactionManagerFactoryBean();
tmcf.afterPropertiesSet();
ExtendedTransactionManager etm = (ExtendedTransactionManager) tmcf.getObject();
TransactionContextManagerFactoryBean tcmfb = new TransactionContextManagerFactoryBean();
tcmfb.setTransactionManager(etm);
tcmfb.afterPropertiesSet();
tcm = (TransactionContextManager) tcmfb.getObject();
GeronimoTransactionManagerFactoryBean gtmfb = new GeronimoTransactionManagerFactoryBean();
gtmfb.setTransactionContextManager(tcm);
gtmfb.afterPropertiesSet();
tm = (TransactionManager) gtmfb.getObject();
tt = new TransactionTemplate(new JtaTransactionManager((UserTransaction) tm));