docs: @Deprecated
     public ComponentMetadata findComponentMetadata(Class<?> componentType) {
        ComponentMetadata md = null;
        while (md == null) {
           String componentName = componentType.getName();
           md = findComponentMetadata(componentName);
           if (md == null) {
              // Test superclasses/superinterfaces.
              if (!componentType.equals(Object.class) && !componentType.isInterface())
                 componentType = componentType.getSuperclass();
              else
                 md = dependencyFreeComponent;
           }
        }
  
        return md;
     }