public synchronized Collection<ServiceInfo> getServices() {
    if (services == null) {
      services = new ArrayList<>();
    }
    return services;
  }
@return A list containing all repos for this stack, grouped by os
ambari-server/src/main/java/org/apache/ambari/server/state/StackInfo.java