*/
@SuppressWarnings("unchecked")
public ScenarioDefinition createDefinition() {
Map<DistinctMarketDataSelector, FunctionParameters> params = Maps.newHashMapWithExpectedSize(_manipulations.size());
for (Map.Entry<DistinctMarketDataSelector, Collection<StructureManipulator<?>>> entry : _manipulations.asMap().entrySet()) {
DistinctMarketDataSelector selector = entry.getKey();
// ListMultimap always has Lists as entries even if the signature doesn't say so
List<StructureManipulator<?>> manipulators = (List<StructureManipulator<?>>) entry.getValue();
CompositeStructureManipulator compositeManipulator = new CompositeStructureManipulator(manipulators);
SimpleFunctionParameters functionParameters = new SimpleFunctionParameters();
functionParameters.setValue(StructureManipulationFunction.EXPECTED_PARAMETER_NAME, compositeManipulator);