code: public static String format(String pattern, Map arguments) {
          MapFormat temp = new MapFormat(arguments);
  
          return temp.format(pattern);
      }
docs: Designated method. It gets the string, initializes HashFormat object
  and returns converted string. It scans  <code>pattern</code>
  for {} brackets, then parses enclosed string and replaces it
  with argument's  <code>get()</code> value.
  
  @param pattern   String to be parsed.
  @param arguments Map with key-value pairs to replace.
  @return Formatted string