if (metadata != null) {
COMPONENT_METADATA_MAP.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()) FACTORIES.put(target.getName(), className);
}
}