import org.codehaus.groovy.grails.web.servlet.GrailsHttpServletResponse;</BUG>
public abstract class AbstractDynamicControllerMethod extends
AbstractDynamicMethodInvocation {
protected HttpServletRequest request;
<BUG>protected GrailsHttpServletResponse response;
public AbstractDynamicControllerMethod(String methodName,HttpServletRequest request, HttpServletResponse response) {</BUG>
super(methodName);
<BUG>this.request = request;
if(response instanceof GrailsHttpServletResponse)
this.response = (GrailsHttpServletResponse)response;
else {
this.response = new GrailsHttpServletResponse(response);</BUG>
}

package org.codehaus.groovy.grails.web.metaclass;
import org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicMethodInvocation;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public abstract class AbstractDynamicControllerMethod extends
AbstractDynamicMethodInvocation {
protected HttpServletRequest request;
protected HttpServletResponse response;
public AbstractDynamicControllerMethod(String methodName,HttpServletRequest request, HttpServletResponse response) {
super(methodName);
this.request = request;
this.response = response;
