private ResourceInstance createResource(String repositoryVersionId) {
    Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.putAll(parentKeyProperties);
    mapIds.put(Resource.Type.CompatibleRepositoryVersion, repositoryVersionId);

    return createResource(Resource.Type.CompatibleRepositoryVersion, mapIds);
  }
Create a repository version resource instance.

@param repositoryVersionId repository version id

@return a repository resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/CompatibleRepositoryVersionService.java