} else {
renderKit = factory.getRenderKit(context, renderKitId);
}
renderKit.addRenderer("javax.faces.Message", "javax.faces.Message", new HtmlMessageRenderer());
renderKit.addRenderer("javax.faces.Messages", "javax.faces.Messages", new HtmlMessagesRenderer());
countCatch = 0;
try {
if (renderKit instanceof Service.Provider)