BigDecimal bigDecValue = (BigDecimal) value;
bigDecValue = bigDecValue.setScale(CURRENCY_SCALE,
BigDecimal.ROUND_HALF_UP);
stringValue = NumberFormat.getInstance().format(bigDecValue.doubleValue());
} catch (IllegalArgumentException iae) {
throw new FormattingException("Unable to format " + value +
"as a currency value", iae);
}
return stringValue;
}