public ExperimentSearchParamsData apply(ExperimentSearchParamsInfo p) {
final ExperimentSearchParamsInfo.Ms2ProcessorParamsInfo ms2I = p.ms2ProcessorParams;
final ExperimentSearchParamsInfo.CometParamsInfo cI = p.cometParams;
final Ms2ProcessorParamsData ms2Data = new Ms2ProcessorParamsData(ms2I.maxCharge, ms2I.isolationWidth);
final SearchDatabase sequestSearchDB = sequestSearchDBRepository.findOne(cI.database);
final CometParamsData cometParamsData = new CometParamsData(sequestSearchDB, cI.maxPrecursorCharge, cI.peptideMassTolerance,
cI.peptideMassUnits, cI.massTypeParent, cI.massTypeFragment, cI.precursorToleranceType, cI.searchEnzymeNumber, cI.numEnzymeTermini, newLinkedHashSet(cI.modificationParams));
return new ExperimentSearchParamsData(ms2Data, cometParamsData);
}
}.apply(params);
final Experiment experiment = experimentRepository.findOne(experimentId);