newWriter.startDocument();
doRenderView(context, viewToRender);
newWriter.endDocument();
// Check again to see if the processing of the Faces view triggered a redirect
redirectParams = (QueryString) context.getExternalContext()
.getRequestMap().get(BridgeImpl.REDIRECT_VIEWPARAMS);
if ((redirectParams != null))