// Allocate our ObjectManager
// TODO Remove the PM when we disconnect StateManager from PersistenceManager
pm = pmf.getPersistenceManager();
om = ((AbstractPersistenceManager)pm).getObjectManager();
ObjectManagerFactoryImpl omf = (ObjectManagerFactoryImpl)pmf;
if (omf.getOMFContext().getPersistenceConfiguration().getStringProperty("org.jpox.TransactionType").equalsIgnoreCase(
TransactionType.RESOURCE_LOCAL.toString()))
{
// Using ResourceLocal transaction so allocate a transaction
tx = new EntityTransactionImpl(om);
}