}
else {
context = setupWithPoolingDataSource(JBPM_PERSISTENCE_UNIT_NAME);
}
env = createEnvironment(context);
env.set(EnvironmentName.PERSISTENCE_CONTEXT_MANAGER, new InfinispanProcessPersistenceContextManager(env));
env.set(EnvironmentName.TRANSACTION_MANAGER,
new JtaTransactionManager(env.get(EnvironmentName.TRANSACTION),
env.get(EnvironmentName.TRANSACTION_SYNCHRONIZATION_REGISTRY),
env.get(EnvironmentName.TRANSACTION_MANAGER)
)