code: public static String format(String pattern, Map<String, Object> arguments) {
          MessageFormat temp = new MessageFormat(pattern);
          return temp.format(arguments);
      }
docs: Creates a MessageFormat with the given pattern and uses it to
  format the given arguments.  The pattern must identifyarguments
  by name instead of by number.
  <p>
  @throws IllegalArgumentException if the pattern is invalid
  @throws IllegalArgumentException if a value in the
  <code>arguments</code> array is not of the type
  expected by the corresponding argument or custom Format object.
  @see #format(Map, StringBuffer, FieldPosition)
  @see #format(String, Object[])