code: public static String format(final String pattern, Object... params) {
          return MessageFormatter.arrayFormat(pattern, params).getMessage();
      }
docs: based on String pattern, which contains placeholder <code>{}</code>, inserts params into
  the pattern and returns resulting String
  @param pattern string pattern with placeholders {}
  @param params to replace placeholders with
  @return String with params inserted into pattern