code: protected static String messageFormat(String textPattern, Object... args) {
      return MessageFormat.format(textPattern, args);
    }
docs: Formats the given {@link String} of text using the {@link MessageFormat} class.
  
  @param textPattern {@link String} text pattern to format.
  @param args array of {@link Object} arguments to apply to the text pattern.
  @return a formatted {@link String} of text with the arguments applied to the text pattern
  using the {@link MessageFormat} class.
  @see java.text.MessageFormat
  @see java.lang.String