@Override
public long newExperimentSearch(long creator, String name, String description, long experiment, ExperimentSearchParamsInfo paramsInfo) {
checkArgument(validator.canUserCreateExperimentSearchWithTitle(creator, experiment, name), "User already has experiment run with this name: \"" + name + "\"");
if (!validator.checkCreatingExperimentSearchForExperiment(creator, experiment)){
throw new AccessDenied("User can't create run for experiment");
}
final ExperimentSearchData experimentSearchData = createExperimentSearchData(name, description, experiment, paramsInfo);
final List<RawFile> experimentFiles = experimentRepository.findFilesByExperimentId(experiment);
final ExperimentSearch experimentSearch = createAndSaveExperimentSearch(experimentSearchData, newHashSet(experimentFiles));
startSearch(experimentSearch);