// Pass in the real response object. If I wanted to
// filter the output further, I could easily construct
// a CocoonServletResponse object and pass that in,
// and pull the output out of it.
out.println("Generate some content... <br />");
cocoonEngine.handle(myReq, res);
} catch (Exception e) {
out.println("Error: " + e.getMessage());
}