public AcrossContext acrossContext( ConfigurableApplicationContext applicationContext ) throws Exception {
AcrossContext acrossContext = new AcrossContext( applicationContext );
acrossContext.setDataSource( dataSource() );
acrossContext.addModule( hibernate1Module() );
acrossContext.addModule( hibernate2Module() );
acrossContext.addApplicationContextConfigurer( new TransactionManagementConfigurer(),
ConfigurerScope.CONTEXT_AND_MODULES );
return acrossContext;
}