Comment the other approach of getEntityClass