}
public void registerDecorator(final IOCDecoratorExtension<?> iocExtension) {
final Class<? extends Annotation> annotation = iocExtension.decoratesWith();
final Target target = annotation.getAnnotation(Target.class);
if (target != null) {
final boolean oneTarget = target.value().length == 1;
for (final ElementType type : target.value()) {
if (type == ElementType.ANNOTATION_TYPE) {
// type is a meta-annotation. so we need to map all annotations with this
// meta-annotation to the decorator extension.
for (final MetaClass annotationClazz : ClassScanner.getTypesAnnotatedWith(annotation)) {