[glassfish embedded] Retrieving EntityManager in the Jersey XmlAdapter