@Path("{clusterName}/stack_versions")
  public ClusterStackVersionService getClusterStackVersionService(@Context jakarta.ws.rs.core.Request request,
      @PathParam("clusterName") String clusterName) {
    return new ClusterStackVersionService(clusterName);
  }
Gets the cluster stack versions service.

@param request
         the request
@param clusterName
         the cluster name

@return the cluster stack versions service
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java