Removed duplicate dependency on entitymanager