Be careful while using EntityManager.getDelegate()