section.writeSection(identification, identificationFeaturesGenerator, searchParameters, annotationPreferences, sequenceMatchingPreferences, psmKeys, "", exportScheme.isValidatedOnly(), exportScheme.isIncludeDecoy(), waitingHandler);
} else if (sectionName.equals(PsIdentificationAlgorithmMatchesFeature.type)) {
PsIdentificationAlgorithmMatchesSection section = new PsIdentificationAlgorithmMatchesSection(exportScheme.getExportFeatures(sectionName), exportScheme.isIndexes(), exportScheme.isHeader(), exportWriter);
section.writeSection(identification, identificationFeaturesGenerator, searchParameters, annotationPreferences, sequenceMatchingPreferences, psmKeys, "", waitingHandler);
} else if (sectionName.equals(PsPtmScoringFeature.type)) {
PsPtmScoringSection section = new PsPtmScoringSection(exportScheme.getExportFeatures(sectionName), exportScheme.isIndexes(), exportScheme.isHeader(), exportWriter);
section.writeSection(ptmcoringPreferences, waitingHandler);
} else if (sectionName.equals(PsSearchFeature.type)) {
PsSearchParametersSection section = new PsSearchParametersSection(exportScheme.getExportFeatures(sectionName), exportScheme.isIndexes(), exportScheme.isHeader(), exportWriter);
section.writeSection(searchParameters, waitingHandler);
} else if (sectionName.equals(PsSpectrumCountingFeature.type)) {
PsSpectrumCountingSection section = new PsSpectrumCountingSection(exportScheme.getExportFeatures(sectionName), exportScheme.isIndexes(), exportScheme.isHeader(), exportWriter);
section.writeSection(spectrumCountingPreferences, waitingHandler);
} else if (sectionName.equals(PsValidationFeature.type)) {
PsValidationSection section = new PsValidationSection(exportScheme.getExportFeatures(sectionName), exportScheme.isIndexes(), exportScheme.isHeader(), exportWriter);
PSMaps psMaps = new PSMaps();
psMaps = (PSMaps) identification.getUrParam(psMaps);
section.writeSection(psMaps, waitingHandler);
} else {
throw new UnsupportedOperationException("Sectrion " + sectionName + " not implemented.");
}
}