code: private static Map<String, Object> localizeDecimalParams(final Map<String, Object> params) {
      Map<String, Object> localized = new HashMap<>(params.size());
      final NumberFormat localizedNumberFormatter = DecimalFormat.getNumberInstance();
      for (String key : params.keySet()) {
        final Object value = params.get(key);
        final Object newValue;
        if (value instanceof Float || value instanceof Double) {
          newValue = localizedNumberFormatter.format(value);
        } else
          newValue = value;
        localized.put(key, newValue);
      }
      return Collections.unmodifiableMap(localized);
    }
docs: Iterates over a set of parameters and applies locale-specific formatting
  to decimal ones (Floats and Doubles).
  
  @param params Parameters to localize
  @return Map with localized parameter values