if (detail != null) {
format = new MessageFormat(detail, locale);
detail = format.format(args);
}
}
return new LabelValueExpressionFacesMessage(severity, summary, detail);
} else {
return new LabelValueBindingFacesMessage(severity, summary, detail, locale, args);
}
}