code: private static Format getPercentFormatProcessor(ColumnFormat columnFormat, Locale locale) {
          DecimalFormatSymbols dfs = new DecimalFormatSymbols(locale);
          if (columnFormat.getPrecision() == 0) {
              return new DecimalFormat("0%", dfs);
          }
          String pattern = "0%." + new String(new char[columnFormat.getPrecision()]).replace("\0", "0");
          return new DecimalFormat(pattern, dfs);
      }
docs: The function to get a formatter to convert percentage elements into a string.
  
  @param columnFormat the (@link ColumnFormat) class variable that stores the precision of rounding
  the converted value.
  @param locale       locale for parsing date elements.
  @return a formatter to convert percentage elements into a string.