Added entitymanager and repository for labels.