}
AjaxContext ac = AjaxContext.getCurrentInstance(FacesContext.getCurrentInstance());
if(ac.isAjaxRequest() && !this.isAjaxRendered()){
return false;
}
Severity severity = message.getSeverity();
for (Object key : FacesMessage.VALUES_MAP.keySet()) {
Severity sev = (Severity) FacesMessage.VALUES_MAP.get(key);
if (0 == sev.compareTo(severity)) {
return severenities.contains(((String)key).toUpperCase(Locale.ENGLISH));
}
}
return false;
}