code: public static String getMessage(String key, Object... args) {
          if (messages == null) {
              if (locale == null)
                  locale = Locale.getDefault();
              messages = ResourceBundle.getBundle("com.ibm.ws.install.internal.resources.Repository", locale);
          }
          String message = messages.getString(key);
          if (args.length == 0)
              return message;
          MessageFormat messageFormat = new MessageFormat(message, locale);
          return messageFormat.format(args);
      }
docs: Get the message corresponding to the key and Repository locale.
  
  @param key
  @param args
  @return formatted message associated with key input