{
_localeManager.persistLocale();
IPage page = cycle.getPage();
ContentType contentType = page.getResponseContentType();
String encoding = contentType.getParameter(ENCODING_KEY);
if (encoding == null)
{
encoding = cycle.getEngine().getOutputEncoding();
contentType.setParameter(ENCODING_KEY, encoding);
}
PrintWriter printWriter = _webResponse.getPrintWriter(contentType);
IMarkupWriter writer = _markupWriterSource.newMarkupWriter(printWriter, contentType);