docs: public String getMessage(Class<?> aClass, ResourceBundle bundle, String bundleName, String key, Object[] args, String defaultString, boolean format, Locale locale, boolean quiet) {
          String returnValue = null;
  
          if (locale == null)
              locale = Locale.getDefault();
  
          try {
              // Retrieve a reference to the ResourceBundle and do the lookup on
              // the key.
              if (bundle == null)
                  bundle = getResourceBundle(aClass, bundleName, locale);
  
              returnValue = bundle.getString(key);
  
              // The lookup may have returned empty string if key was found, but
              // there is no value.
              if (returnValue.equals("")) {
                  // Log this occurrence, it needs to be fixed.
                  if (!quiet)
                      logEvent(svMalformedMessage, new Object[] { key, bundleName });
  
                  // Determine which value to continue with. Default text takes
                  // priority over key.
                  if (defaultString == null)
                      returnValue = key;
                  else
                      returnValue = defaultString;
              }
  
              // We have a non-null returnValue, either from the lookup or we are
              // using the default text.
              if (format == false)
                  return returnValue;
              else
                  return getFormattedMessage(returnValue, args);
          } catch (RuntimeException re) {
              // sort our error conditions here. Order dependencies in following
              // logic
              if (bundleName == null) {
                  // Caller passed a null bundleName argument. Log a message to
                  // let the developer know there is a bug in his code. Proceed.
                  // Need to determine what String to use. For this condition,
                  // defaultText takes priority over key. One must be non-null.
                  if ((key == null) && (defaultString == null)) {
                      if (!quiet)
                          logEvent(svNullBundleName, new Object[] { nullKey });
  
                      return MessageFormat.format(svNullBundleName, new Object[] { nullKey });
                  }
  
                  if (defaultString == null) {
                      if (!quiet)
                          logEvent(svNullBundleName, new Object[] { defaultString });
  
                      returnValue = key;
                  } else {
                      if (!quiet)
                          logEvent(svNullBundleName, new Object[] { key });
  
                      returnValue = defaultString;
                  }
  
                  if (format == false)
                      return returnValue;
                  else
                      return getFormattedMessage(returnValue, args);
              } // end null resourceBundleName
  
              if (bundle == null) {
                  // ResourceBundle lookup failed. Log a message so the problem
                  // can be fixed.
                  if (!quiet)
                      logEvent(svBundleNotLoaded, new Object[] { bundleName });
  
                  // Proceed. Need to determine what String to use. For this
                  // condition, defaultText takes priority over key. One must be
                  // non-null.
                  if ((key == null) && (defaultString == null))
                      return MessageFormat.format(svBundleNotLoaded, new Object[] { bundleName });
  
                  if (defaultString == null)
                      returnValue = key;
                  else
                      returnValue = defaultString;
  
                  if (format == false)
                      return returnValue;
                  else
                      return getFormattedMessage(returnValue, args);
              } // end null ResourceBundle
  
              if (key == null) {
                  // ResourceBundle was loaded, caller passed a null key. Log a
                  // message so it can be fixed.
                  if (!quiet)
                      logEvent(svNullKeyMessage, new Object[] { bundleName });
  
                  // Proceed. For this condition, defaultText must be non-null.
                  if (defaultString == null)
                      return MessageFormat.format(svNullKeyMessage, new Object[] { bundleName });
                  else
                      returnValue = defaultString;
  
                  if (format == false)
                      return returnValue;
                  else
                      return getFormattedMessage(returnValue, args);
              } // end null key
  
              // Must be a keyNotFound in Bundle condition.
              if (!quiet)
                  logEvent(svMalformedMessage, new Object[] { key, bundleName });
  
              // Proceed. For this condition, key cannot be null.
              if (defaultString == null)
                  returnValue = key;
              else
                  returnValue = defaultString;
              if (format == false)
                  return returnValue;
              else
                  return getFormattedMessage(returnValue, args);
          }
      }