code: @SuppressWarnings("unchecked")
     public <T> T getComponent(Class<T> type) {
        String className = type.getName();
        return (T) getComponent(type, className);
     }
docs: Retrieves a component of a specified type from the registry, or null if it cannot be found.
  
  @param type type to find
  @return component, or null