private boolean isFamilyExtendedByFamily(String currentFamily, String family) {
      return (currentFamily.equals(family) || getOsFamilyParent(currentFamily)!=null && isFamilyExtendedByFamily(getOsFamilyParent(currentFamily), family));
    }
Form list of all supported os types
@return one dimension list with os types
ambari-server/src/main/java/org/apache/ambari/server/state/stack/OsFamily.java