code: public Map<String, InstalledFeature> getInstalledCoreFeatures() {
          try {
              Map<String, InstalledFeature> installedFeatures = new TreeMap<String, InstalledFeature>();
              Map<String, ProvisioningFeatureDefinition> fdMap = product.getCoreFeatureDefinitions();
              for (Entry<String, ProvisioningFeatureDefinition> entry : fdMap.entrySet()) {
                  installedFeatures.put(entry.getKey(), new InstalledAssetImpl(entry.getValue()));
              }
              return installedFeatures;
          } catch (FeatureToolException rte) {
              log(Level.FINEST, "Director.getInstalledCoreFeatures() got exception.", rte);
              return null;
          }
      }
docs: Gets installed core features
  
  @return Map of feature name to InstalledFeature