code: public void writeDefaultConfiguration(ManifestFileProcessor mfp) {
          try {
              try {
                  // Build the list of configurations
                  buildDefaultConfigurationList(mfp);
  
                  // Write <defaultConfiguration>
                  startDefaultConfigurationSection();
  
                  // We now have a map of bundles to the features that enable them. Loop through it and write out the default configuration for each one.
                  for (Entry<FeatureResource, Set<String>> entry : bundleNameToFeaturesMap.entrySet()) {
                      FeatureResource bundle = entry.getKey();
  
                      BundleWrapper bw = new BundleWrapper(mfp, bundle);
  
                      for (DefaultElement element : bw.getDefaultElements()) {
  
                          indenter.indent(1);
                          writer.writeStartElement(DEFAULT_INSTANCE);
                          writer.writeAttribute(PROVIDING_FEATURES, getFeatureString(entry.getValue()));
                          if (element.requiresExisting())
                              writer.writeAttribute(XMLConfigParser.REQUIRE_EXISTING, "true");
                          if (element.addIfMissing())
                              writer.writeAttribute(XMLConfigParser.REQUIRE_DOES_NOT_EXIST, "true");
                          element.writeElement(2);
                          indenter.indent(1);
                          writer.writeEndElement();
                      }
                  }
  
                  // </defaultConfiguration>
                  endDefaultConfigurationSection();
              } catch (XMLStreamException e) {
                  throw new IOException("Error generating feature list", e);
              } catch (BundleException e) {
                  throw new IOException("Error generating feature list", e);
              }
          } catch (IOException ex) {
              options.setReturnCode(ReturnCode.RUNTIME_EXCEPTION);
              throw new RuntimeException(ex);
          }
      }
docs: Builds a representation of default configuration and writes it out to the feature list file
  
  @param mfp