code: @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;
     }
docs: Locates metadata for a given component type if registered.  If not registered, superclasses/interfaces are
  consulted, until, finally, an empty instance of {@link ComponentMetadata} is returned effectively declaring
  that the component has no dependencies or any lifecycle methods declared.
  
  @param componentType component type to look for
  @return metadata expressed as a ComponentMetadata instance
  @deprecated Since 9.4, please use {@link #findComponentMetadata(String)} instead.