MarketDataSelector selector = CompositeMarketDataSelector.of(simulation.allSelectors());
ViewCycleExecutionOptions options = ViewCycleExecutionOptions.builder().setMarketDataSelector(selector).create();
List<ViewCycleExecutionOptions> optionsList = simulation.cycleExecutionOptions(options, simulation.allSelectors());
ArbitraryViewCycleExecutionSequence sequence = new ArbitraryViewCycleExecutionSequence(optionsList);
FudgeSerializer serializer = new FudgeSerializer(OpenGammaFudgeContext.getInstance());
ArbitraryViewCycleExecutionSequenceFudgeBuilder fudgeBuilder = new ArbitraryViewCycleExecutionSequenceFudgeBuilder();
MutableFudgeMsg msg = fudgeBuilder.buildMessage(serializer, sequence);
FudgeDeserializer deserializer = new FudgeDeserializer(OpenGammaFudgeContext.getInstance());
fudgeBuilder.buildObject(deserializer, msg);
}