ResourceInstance createStackResource(String stackName) {

    return createResource(Resource.Type.Stack,
        Collections.singletonMap(Resource.Type.Stack, stackName));

  }
Handles ANY /{stackName}/versions/{stackVersion}/compatible_repository_versions.

@param stackName stack name
@param stackVersion stack version
@return repository version service
ambari-server/src/main/java/org/apache/ambari/server/api/services/StacksService.java