public String getExcelPattern(Locale locale) {
        DecimalFormat format = (DecimalFormat) DecimalFormat.getCurrencyInstance(locale);
        String pattern = format.toLocalizedPattern();
        pattern =  pattern.replace(CURRENCY_SYMBOL_STR, "\"" + format.getDecimalFormatSymbols().getCurrencySymbol() + "\"");
        String[] patterns = pattern.split(";");
        return patterns[0];
    }
<p>
Returns a <code>String</code> representing the Excel pattern for this currency.
</p>

@param locale The locale a <code>NumberFormat</code> is required for, system default if null.
@return The <code>String</code> pattern for using in Excel format.
primefaces/src/main/java/org/primefaces/util/CurrencyValidator.java