Added context safe entity manager to be able to run CDI injected entity managers from a new thread