public String formatCurrency(final Number target) { if (target == null) { return null; } try { return NumberUtils.formatCurrency(target, this.locale); } catch (final Exception e) { throw new TemplateProcessingException("Error formatting currency", e); } }