code: public static boolean isComponentConsumerOnly(CamelCatalog camelCatalog, String scheme) {
          // use the camel catalog
          String json = camelCatalog.componentJSonSchema(scheme);
          if (json == null) {
              return false;
          }
  
          List<Map<String, String>> data = JSonSchemaHelper.parseJsonSchema("component", json, false);
          if (data != null) {
              for (Map<String, String> propertyMap : data) {
                  String consumerOnly = propertyMap.get("consumerOnly");
                  if (consumerOnly != null) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Whether the component is consumer only