These could be replaced with synthetic container lifecycle event observers, e.g.:
new Weld().addContainerLifecycleObserver(afterBeanDiscovery((e)-> e.addBean()))