Refining ManageController.groovy