Updated handling of transactions in managed EntityManager