docs: public Weld setBeanDiscoveryMode(BeanDiscoveryMode mode) {
          // NONE makes no sense as an option
          if (mode.equals(BeanDiscoveryMode.NONE)) {
              throw WeldSELogger.LOG.beanArchiveWithModeNone(containerId);
          }
          beanDiscoveryMode = mode;
          return this;
      }