[FEATURE] Removed call to deprecated getEntityManager