protected String getMsgStyle(FacesContext facesContext, UIComponent component, Object msg)
     throws IOException {
   MessageForRender message = (MessageForRender) msg;
   SeverityAttributes severityAttributes = SEVERITY_MAP.get(message.getSeverity());
   String style = buildSeverityAttribute(component, null, severityAttributes.styleAttribute, ';');
   return style;
 }
  protected String getMsgClass(FacesContext facesContext, UIComponent component, Object msg)
      throws IOException {
    MessageForRender message = (MessageForRender) msg;
    SeverityAttributes severityAttributes = SEVERITY_MAP.get(message.getSeverity());

    boolean isMessages = (isComponentMessages(component));

    String styleClass =
        buildSeverityAttribute(
            component,
            (isMessages
                ? severityAttributes.messagesSkinClass
                : severityAttributes.messageSkinClass),
            severityAttributes.classAttribute,
            ' ');
    return styleClass;
  }