public void setRepositories(Collection<RepositoryInfo> repositories) {
    m_repositories = new ArrayList<>();

    for (RepositoryInfo info : repositories) {
      m_repositories.add(new Repository(info));
    }
  }
@param repositories the repositories if sourced from the stack instead of the repo_version.
ambari-server/src/main/java/org/apache/ambari/server/agent/CommandRepository.java