code: private String getMessage(String key, Object... args) {
          String message = messages.getString(key);
          return (args.length == 0) ? message : MessageFormat.format(message, args);
      }
docs: Get a formatted message.