code: void beforeBeanDiscovery(
          @Observes final BeforeBeanDiscovery event, BeanManager beanManager)
      {
          // Register FlowBuilderFactoryBean as a bean with CDI annotations, so the system
          // can take it into account, and use it later when necessary.
          AnnotatedType<FlowBuilderFactoryBean> flowDiscoveryHelper = 
                          beanManager.createAnnotatedType(FlowBuilderFactoryBean.class);
          event.addAnnotatedType(flowDiscoveryHelper, CDIServiceUtils.getAnnotatedTypeIdentifier(flowDiscoveryHelper, this.getClass()));
      }
docs: PI46218 end