@Path("{hostName}/stack_versions")
  public HostStackVersionService getHostStackVersionService(@Context jakarta.ws.rs.core.Request request,
      @PathParam("hostName") String hostName) {

    return new HostStackVersionService(hostName, m_clusterName);
  }
Gets the host stack versions service.

@param request the request
@param hostName the host name
@return the host stack versions service
ambari-server/src/main/java/org/apache/ambari/server/api/services/HostService.java