if (metadata != null) {
repo.componentMetadataMap.put(metadata.getName(), metadata);
}
// and also lets check if this class is a factory for anything.
DefaultFactoryFor dff = ReflectionUtil.getAnnotation(clazz, DefaultFactoryFor.class);
if (dff != null) {
for (Class<?> target : dff.classes()) repo.factories.put(target.getName(), className);
}
}