code: String getResourceString(String key) {
          if (outputRB == null) {
              try {
                  outputRB = ResourceBundle.getBundle(L10N_RB_NAME, locale);
              } catch (MissingResourceException mre) {
                  error("Cannot find ResourceBundle: %s for locale: %s", L10N_RB_NAME, locale);
                  return "";
              }
          }
          String s;
          try {
              s = outputRB.getString(key);
          } catch (MissingResourceException mre) {
              error("Missing resource: %s in %s", key, L10N_RB_NAME);
              return "";
          }
          return s;
      }
docs: Resource bundle look-up
  
  @param key the resource key