fix for GRAILS-9784 "Using an anonymous inner class in Controller causes VerifyError"