Fixing compile issue in a rest controller.