code: private static void createConfigFileOverridesFromSubsystems(File featurePackFile, List<org.wildfly.build.common.model.ConfigFile> configFiles, ZipFileSubsystemInputStreamSources subsystemInputStreamSources, Map<String, ConfigFileOverride> configFileOverrides) throws IOException, XMLStreamException {
          for (org.wildfly.build.common.model.ConfigFile configFile : configFiles) {
              // parse subsystems
              Map<String, Map<String, SubsystemConfig>> subsystems = configFile.getSubsystemConfigs(featurePackFile);
              // remove the subsystems which templates were not found in the subsystem modules
              Iterator<Map<String, SubsystemConfig>> subsystemsIterator = subsystems.values().iterator();
              while (subsystemsIterator.hasNext()) {
                  Map<String, SubsystemConfig> subsystemConfigs = subsystemsIterator.next();
                  Iterator<String> subsystemConfigsIterator = subsystemConfigs.keySet().iterator();
                  while (subsystemConfigsIterator.hasNext()) {
                      String subsystemConfig = subsystemConfigsIterator.next();
                      if (subsystemInputStreamSources.getInputStreamSource(subsystemConfig) == null) {
                          subsystemConfigsIterator.remove();
                      }
                  }
                  if (subsystemConfigs.isEmpty()) {
                      subsystemsIterator.remove();
                  }
              }
              if (subsystems.isEmpty()) {
                  // skip config files without subsystems
                  continue;
              }
              configFileOverrides.put(configFile.getOutputFile(), new ConfigFileOverride(configFile.getProperties(), false, subsystems, configFile.getOutputFile()));
          }
      }
docs: Creates a {@link org.wildfly.build.common.model.ConfigFileOverride} for each {@link org.wildfly.build.common.model.ConfigFile} provided, including only the subsystems in the specified {@link org.wildfly.build.util.ZipFileSubsystemInputStreamSources}.
  @param featurePackFile
  @param configFiles
  @param subsystemInputStreamSources
  @param configFileOverrides
  @throws IOException
  @throws XMLStreamException