for (String beanName : beanNames) {
BeanDefinition beanDefinition = configurableListableBeanFactory.getBeanDefinition(beanName);
if (beanDefinition.getBeanClassName() != null) {
try {
Class beanClass = Class.forName(beanDefinition.getBeanClassName());
Environment environmentAnnotation = findEnvironmentAnnotation(beanClass);
if (environmentAnnotation != null) {
if (!assemblyContextResolver.getAssemblyContext().isEmpty()) {
boolean autowireCandidate = decideIfAutowireCandiate(beanName, environmentAnnotation);
beanDefinition.setAutowireCandidate(autowireCandidate);
if (autowireCandidate) {