docs: private static String localize(Logger logger, String message) {
          ResourceBundle bundle = logger.getResourceBundle();
          try {
              return bundle != null ? bundle.getString(message) : message;
          } catch (MissingResourceException ex) {
              //string not in the bundle
              return message;
          }
      }