code: public String getSeverityName(Severity severity) {
  		if (severity.equals(FacesMessage.SEVERITY_INFO)) {
  			return "info";
  		} else if (severity.equals(FacesMessage.SEVERITY_WARN)) {
  			return "warn";
  		} else if (severity.equals(FacesMessage.SEVERITY_ERROR)) {
  			return "error";
  		} else if (severity.equals(FacesMessage.SEVERITY_FATAL)) {
  			return "fatal";
  		}
  		throw new IllegalStateException();
  	}
docs: Returns name of the given severity in lower case.
  
  @param severity Severity to get name of.
  @return Name of the given severity in lower case.