public String format(MessageContext messageContext, Number valueToFormat)
{
Locale locale = messageContext.getLocale();
GenericConfig formatterConfig = messageContext.config().getFormatterFactory()
.findFormatterConfig(Number.class, locale);
if (formatterConfig != null)
{
useCustomConfig(formatterConfig);