description.getName()));
return new BatchSpec(batchId);
} else {
String comment = normalizeComment(info.comment());
boolean strict = info.strict();
List<Parameter> parameters = toParameters(description, info.parameters());
return new BatchSpec(info.name(), comment, strict, parameters);
}
}
private List<Parameter> toParameters(