private final String formatAmount(final Object amountObject) {
        final DecimalFormat df =
                new DecimalFormat( "#,###,###,###,###,###,###,###,##0.00" );
        if (amountObject instanceof String) {
            if (!((String) amountObject).matches(NUMBERS)) {
                return "0.00";
            }
            return df.format(Long.parseLong((String) amountObject));
        } else if (amountObject instanceof Long) {
            return df.format((Long) amountObject);
        } else {
            return df.format((Double) amountObject);
        }
    }