contentWriter.write(StringUtils.replace(StringUtils.replace(jsfState.toString(), "\"", "\\\""), "\n", ""));
contentWriter.write("\");");
contentWriter.endElement(HtmlConstants.SCRIPT);
writeAjaxResponse(facesContext, content.toString());
facesContext.responseComplete();
} catch (IOException e) {
LOG.error("Exception while processing Ajax", e);
}
}