Created entitymanager object at module load
Changed the method signature as declared in the TranslatorAwareInterface