EntityManager & JSONSerializer stuff.