return result;
}
public static FacesMessage parse(final Throwable throwable) {
FacesMessage facesMessage = new FacesMessage();
ApplicationException annotation = throwable.getClass().getAnnotation(ApplicationException.class);
if (annotation != null) {
facesMessage.setSeverity(parse(annotation.severity()));
} else {
facesMessage.setSeverity(SEVERITY_ERROR);
}
if (throwable.getMessage() != null) {