if (log.isDebugEnabled()) {
log.debug("RENDER_KIT_ID_PARAM " + renderKitId);
}
if (renderKitId != null && renderKitId.equals(XULRenderKit.XUL_BASIC_RENDER_KIT)) {
writer.startElement("xfc:renderKit", context.getViewRoot());
writer.writeAttribute("id", ResponseStateManager.RENDER_KIT_ID_PARAM, "id");
writer.writeAttribute("value", XULRenderKit.XUL_BASIC_RENDER_KIT, "value");
writer.endElement("xfc:renderKit");
} else {
log.error(BAD_RENDERKIT_ID);
throw new FacesException(BAD_RENDERKIT_ID);