this.servletRequest = servletRequest;
this.servletResponse = servletResponse;
}
@Override
public Object exeCall(Call call) throws Throwable {
WebModelController webController = null;
try {
ModelController controller = call.getTarget();
if (controller instanceof WebModelController) {
webController = ((WebModelController) controller);
webController.initController(this.servletRequest, this.servletResponse);
}
return super.exeCall(new WebCallWrap(call, this.servletRequest, this.servletResponse));
} finally {
if (webController != null) {
webController.initController(null, null);
}
}
}