private ResourceInstance createResource(String stackVersionId) {
    final Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.Cluster, clusterName);
    mapIds.put(Resource.Type.ClusterStackVersion, stackVersionId);
    return createResource(Resource.Type.ClusterStackVersion, mapIds);
  }
Create a cluster stack version resource instance.

@param stackVersionId cluster stack version id

@return a cluster stack version resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterStackVersionService.java