code: public Map<String, InstalledFeatureCollection> getInstalledFeatureCollections() {
          try {
              Map<String, InstalledFeatureCollection> installedFeatureCollections = new TreeMap<String, InstalledFeatureCollection>();
              Map<String, ProvisioningFeatureDefinition> fdMap = product.getFeatureCollectionDefinitions();
              for (Entry<String, ProvisioningFeatureDefinition> entry : fdMap.entrySet()) {
                  installedFeatureCollections.put(entry.getKey(), new InstalledAssetImpl(entry.getValue()));
              }
              return installedFeatureCollections;
          } catch (FeatureToolException rte) {
              log(Level.FINEST, "Director.getInstalledFeatureCollections() got exception.", rte);
              return null;
          }
      }
docs: Get installed feature collections
  
  @return Map of feature name to InstalledFeatureCollection