@Experimental(feature = ExperimentalFeature.CUSTOM_SERVICE_REPOS,
    comment = "Remove logic for handling custom service repos after enabling multi-mpack cluster deployment")
  private static RepoDefinitionEntity toRepositoryEntity(RepositoryInfo repoInfo) {
    RepoDefinitionEntity re = new RepoDefinitionEntity();
    re.setBaseUrl(repoInfo.getBaseUrl());
    re.setRepoName(repoInfo.getRepoName());
    re.setRepoID(repoInfo.getRepoId());
    re.setDistribution(repoInfo.getDistribution());
    re.setComponents(repoInfo.getComponents());
    re.setTags(repoInfo.getTags());
    re.setApplicableServices(repoInfo.getApplicableServices());
    return re;
  }
Convert a list of {@link RepositoryInfo} objects to a lost of {@link RepositoryResponse} objects
@param repositoryInfos the list of repository infos
@param versionDefinitionId the version definition id
@param stackName the stack name
@param stackVersion the stack version
@return a list of repository responses
ambari-server/src/main/java/org/apache/ambari/server/stack/RepoUtil.java