public ListMultimap<String, RepositoryInfo> getRepositoriesByOs() {
    return Multimaps.index(getRepositories(), RepositoryInfo.GET_OSTYPE_FUNCTION);
  }
@return A list containing all repos for this stack, grouped by os
ambari-server/src/main/java/org/apache/ambari/server/state/StackInfo.java