*/
public void writeContent(FacesContext context, BufferedMimeResponseWrapper wrappedResponse) throws IOException {
MimeResponse response = wrappedResponse.getResponse();
if(wrappedResponse.isUseWriter()){
FastPrintWriter fastPrintWriter = wrappedResponse.getWriter();
Reader reader = new CharArrayReader(fastPrintWriter.toCharArray());
HtmlParser htmlParser = null;
try {
// TODO - check viewId
htmlParser = getParser("text/xml", true, context.getViewRoot().getViewId());
// Setup scripts and styles