@Path("{stackVersionId}/repository_versions")
  public RepositoryVersionService getRepositoryVersionHandler(@PathParam("stackVersionId") String stackVersionId) {
    final Map<Resource.Type, String> stackVersionProperties = new HashMap<>();
    stackVersionProperties.put(Resource.Type.Host, hostName);
    stackVersionProperties.put(Resource.Type.HostStackVersion, stackVersionId);
    return new RepositoryVersionService(stackVersionProperties);
  }
Handles ANY /{stackVersionId}/repository_versions requests.

@param stackVersionId host stack version id
@return repository version service
ambari-server/src/main/java/org/apache/ambari/server/api/services/HostStackVersionService.java