Migrate to Spring data rest mvc.