if (log.isDebugEnabled())
log.debug(getEntityManagerDetails(entityManager) + ": created entity manager session " +
getTransaction().toString());
registerSynchronization(entityManager, scopedPuName, true);
putEntityManagerInTransactionRegistry(scopedPuName, entityManager);
entityManager.joinTransaction(); // force registration with TX
} else {
if (log.isDebugEnabled()) {
log.debug(getEntityManagerDetails(entityManager) + ": reuse entity manager session already in tx" +
getTransaction().toString());
}