routablePrintWriter = GrailsRoutablePrintWriter.newInstance(new GrailsRoutablePrintWriter.DestinationFactory() {
public PrintWriter activateDestination() throws IOException {
return response.getWriter();
}
});
routableServletOutputStream = new RoutableServletOutputStream(new RoutableServletOutputStream.DestinationFactory() {
public ServletOutputStream create() throws IOException {
return response.getOutputStream();
}
});