In other words to simulate javax.enterprise.inject.spi.BeanManager.getBeans(Type, Annotation...) and javax.enterprise.inject.spi.BeanManager.resolve(Set<Bean<? extends X>>).