General purpose response handling in the controller layer.
Update Groovy version