code: public void removeInstalledFeature(String feature) {
          this.configurationError = true;
          HashSet<String> newInstalledFeatures = new HashSet<>(installedFeatures);
          if (newInstalledFeatures.remove(feature)) {
              installedFeatures = newInstalledFeatures.isEmpty() ? Collections.<String> emptySet() : Collections.unmodifiableSet(newInstalledFeatures);
          }
      }
docs: Remove an installed feature from the list. This is intended to be used to remove features that failed during
  bundle resolution because of java version restrictions.
  
  It will also set configurationError to true, as this should only be called in an error scenario.
  
  @param feature The feature to remove