public Set<String> findTypes(String os) {
      Map<String,String>  pos = parse_os(os);
      for ( String family : osMap.keySet()) {
        JsonOsFamilyEntry fam = osMap.get(family);
        if (fam.getDistro().contains(pos.get(OS_DISTRO)) && fam.getVersions().contains(pos.get(OS_VERSION))){
          Set<String> data= new HashSet<>();
          for (String item: fam.getDistro()) {
            data.add(item + pos.get(OS_VERSION));
          }
            return Collections.unmodifiableSet(data);
        }
      }
      return Collections.emptySet();
    }
Gets the array of compatible OS types
@param os the os
@return all types that are compatible with the supplied type
ambari-server/src/main/java/org/apache/ambari/server/state/stack/OsFamily.java