private ResourceInstance createResource(String repoId) {
    final Map<Resource.Type, String> mapIds = new HashMap<>();
    mapIds.putAll(parentKeyProperties);
    mapIds.put(Resource.Type.Repository, repoId);
    return createResource(Resource.Type.Repository, mapIds);
  }
Create a repository resource instance.

@param repoId repository id

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