docs: public WeldContainer initialize() {
  
          // If also building a synthetic bean archive or the implicit scan is enabled, the check for beans.xml is not necessary
          if (!isSyntheticBeanArchiveRequired() && !isImplicitScanEnabled() && resourceLoader.getResource(WeldDeployment.BEANS_XML) == null) {
              throw CommonLogger.LOG.missingBeansXml();
          }
  
          final WeldBootstrap bootstrap = new WeldBootstrap();
          final Deployment deployment = createDeployment(resourceLoader, bootstrap);
  
          final ExternalConfigurationBuilder configurationBuilder = new ExternalConfigurationBuilder()
                  // weld-se uses CommonForkJoinPoolExecutorServices by default
                  .add(EXECUTOR_THREAD_POOL_TYPE.get(), COMMON.toString())
                  // weld-se uses relaxed construction by default
                  .add(ConfigurationKey.RELAXED_CONSTRUCTION.get(), true)
                  // allow optimized cleanup by default
                  .add(ConfigurationKey.ALLOW_OPTIMIZED_CLEANUP.get(), isEnabled(ALLOW_OPTIMIZED_CLEANUP, true));
          for (Entry<String, Object> property : properties.entrySet()) {
              String key = property.getKey();
              if (SHUTDOWN_HOOK_SYSTEM_PROPERTY.equals(key) || ARCHIVE_ISOLATION_SYSTEM_PROPERTY.equals(key) || DEV_MODE_SYSTEM_PROPERTY.equals(key)
                      || SCAN_CLASSPATH_ENTRIES_SYSTEM_PROPERTY.equals(key) || JAVAX_ENTERPRISE_INJECT_SCAN_IMPLICIT.equals(key)) {
                  continue;
              }
              configurationBuilder.add(key, property.getValue());
          }
          deployment.getServices().add(ExternalConfiguration.class, configurationBuilder.build());
  
          final String containerId = this.containerId != null ? this.containerId : UUID.randomUUID().toString();
          bootstrap.startContainer(containerId, Environments.SE, deployment);
  
          final WeldContainer weldContainer = WeldContainer.startInitialization(containerId, deployment, bootstrap);
  
          try {
              bootstrap.startInitialization();
              bootstrap.deployBeans();
              bootstrap.validateBeans();
              bootstrap.endInitialization();
              WeldContainer.endInitialization(weldContainer, isEnabled(SHUTDOWN_HOOK_SYSTEM_PROPERTY, true));
              initializedContainers.put(containerId, weldContainer);
          } catch (Throwable e) {
              // Discard the container if a bootstrap problem occurs, e.g. validation error
              WeldContainer.discard(weldContainer.getId());
              throw e;
          }
          return weldContainer;
      }