GRAILS-11241 - Pass GrailsWebRequest to captureTagOutput instead of RequestAttributes
GRAILS-11241 - insert casts and types where necessary