final Class<? extends Annotation> cdiScope = getCdiScopeFor(jsfScope);
AnnotationInstanceProvider provider = new AnnotationInstanceProvider();
final Annotation cdiScopeAnnotation = provider.get(cdiScope, Collections.EMPTY_MAP);
AnnotatedTypeBuilder builder;
builder = new AnnotatedTypeBuilder()
.readFromType(type)
.removeFromClass(jsfScope)
.addToClass(cdiScopeAnnotation);
return builder.create();
}