code: public ComponentMetadata getComponentMetadata(Class<?> componentClass) {
        ComponentMetadata md = componentMetadataMap.get(componentClass.getName());
        if (md == null) {
           if (componentClass.getSuperclass() != null) {
              return getComponentMetadata(componentClass.getSuperclass());
           } else {
              return null;
           }
        }
  
        initMetadata(componentClass, md);
  
        return md;
     }
docs: Look up metadata for a component class.
  
  <p>If the class does not have any metadata, tries to look up the metadata of its superclasses.
  This is needed for mocks and other classes generated at runtime.</p>
  
  <p>Do not use for looking up the metadata of an interface,
  e.g. to determine the scope of a component that doesn't exist.</p>