code: private void finish() {
          try {
              GlobalEnablementBuilder globalEnablementBuilder = getBeanManager().getServices().get(GlobalEnablementBuilder.class);
              for (BeanRegistration registration : additionalBeans) {
                  processBeanRegistration(registration, globalEnablementBuilder);
              }
              for (ObserverRegistration registration : additionalObservers) {
                  processObserverRegistration(registration);
              }
          } catch (Exception e) {
              throw new DefinitionException(e);
          }
      }
docs: Bean and observer registration is delayed until after all {@link AfterBeanDiscovery} observers are notified.