public static void exportSpectra(FollowUpCLIInputBean followUpCLIInputBean, Identification identification, WaitingHandler waitingHandler, SequenceMatchingPreferences sequenceMatchingPreferences) throws IOException, MzMLUnmarshallerException, SQLException, ClassNotFoundException, InterruptedException {
File exportFolder = followUpCLIInputBean.getSpectrumExportFolder();
if (!exportFolder.exists()) {
exportFolder.mkdir();
}
SpectrumExporter spectrumExporter = new SpectrumExporter(identification);
spectrumExporter.exportSpectra(exportFolder, waitingHandler, SpectrumExporter.ExportType.getTypeFromIndex(followUpCLIInputBean.getSpectrumExportTypeIndex()), sequenceMatchingPreferences);
}