Index controller add setEntityManager and getEntityManager.