public void writeFacetMarkup(FacesContext context, UIComponent component) throws IOException {
Map<String, JSLiteral> jsonMap = new HashMap<String, JSLiteral>();
if (component.getChildCount() != 0) {
String markupScriptBody = getMarkupScriptBody(context, component, true);
jsonMap.put("dayList" + MARKUP_PARAMETER_SUFFIX, new JSLiteral(markupScriptBody));
}
addFacetMarkupScriptBody(context, component, jsonMap, "optionalHeader");
addFacetMarkupScriptBody(context, component, jsonMap, "optionalFooter");