.addProperty( Environment.JTA_PLATFORM, JBossStandAloneJtaPlatform.class.getName() )
//I don't pool connections by JTA transaction. Leave the work to Hibernate Core
.addProperty( Environment.RELEASE_CONNECTIONS, ConnectionReleaseMode.AFTER_TRANSACTION.toString() )
.addProperty( "hibernate.search.default.directory_provider", "ram" )
.create();
final HibernatePersistence hp = new HibernatePersistence();
factory = hp.createContainerEntityManagerFactory( unitInfo, new HashMap() );
}