if (type.isAnnotationPresent(Specializes.class)) {
qualifiers.addAll(makeSpecialized(context));
}
if (type.isAnnotationPresent(Named.class)) {
final Named namedAnnotation = type.getAnnotation(Named.class);
this.beanName = namedAnnotation.value().equals("")
? type.getBeanDescriptor().getBeanName() : namedAnnotation.value();
}
if (!qualifiers.isEmpty()) {
qualifyingMetadata = context.getProcessingContext().getQualifyingMetadataFactory()
.createFrom(qualifiers.toArray(new Annotation[qualifiers.size()]));