}
else
{
final Weld weld = new ModularWeld(scanResult);
WeldContainer container;
container = weld.initialize();
final BeanManager manager = container.getBeanManager();
Assert.notNull(manager, "BeanManager was null");
AddonRepositoryProducer repositoryProducer = BeanManagerUtils.getContextualInstance(manager,