docs: private String getMessageI18N(LogRecord record) {
          String message = record.getMessage();
  
          if (message == null) {
              return null;
          }
  
          ResourceBundle bundle = record.getResourceBundle();
          if (bundle != null) {
              try {
                  message = bundle.getString(message);
              } catch (MissingResourceException e) {
              }
          }
          Object[] params = record.getParameters();
          // avoid formatting when there are no or 0 parameters. see also
          // http://jira.qos.ch/browse/SLF4J-203
          if (params != null && params.length > 0) {
              try {
                  message = MessageFormat.format(message, params);
              } catch (IllegalArgumentException e) {
                  // default to the same behavior as in java.util.logging.Formatter.formatMessage(LogRecord)
                  // see also http://jira.qos.ch/browse/SLF4J-337
                  return message;
              }
          }
          return message;
      }