public void setRepositories(String osType, Collection<RepoDefinitionEntity> repositories) {
    m_repositories = new ArrayList<>();

    for (RepoDefinitionEntity entity : repositories) {
      m_repositories.add(new Repository(osType, entity));
    }
  }
@param osType        the OS type for the repositories
@param repositories  the repository entities that should be processed into a file
ambari-server/src/main/java/org/apache/ambari/server/agent/CommandRepository.java