@Path("{clusterName}/components")
  public ComponentService getComponentHandler(@Context jakarta.ws.rs.core.Request request, @PathParam("clusterName") String clusterName) {
    return new ComponentService(clusterName, null);
  }
Get the component resource without specifying the parent service.
Allows accessing component resources across services.

@param request      the request
@param clusterName  the cluster name

@return  the host component service with no parent set
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java