throw new IllegalStateException("Execution context does not contain a " + OpenGammaExecutionContext.VIEW_PROCESSOR_NAME);
}
final ViewClient viewClient = viewProcessor.createViewClient(viewEvaluation.getViewDefinition().getMarketDataUser());
final UniqueId viewClientId = viewClient.getUniqueId();
s_logger.info("Created view client {}, connecting to {}", viewClientId, viewId);
viewClient.attachToViewProcess(viewId,
ExecutionOptions.of(viewEvaluation.getExecutionSequence().createSequence(executionContext), getDefaultCycleOptions(executionContext), getViewExecutionFlags(desiredValues)), true);
final TResultBuilder resultBuilder = createResultBuilder(viewEvaluation, desiredValues);
final AsynchronousOperation<Set<ComputedValue>> async = AsynchronousOperation.createSet();
final AtomicReference<ResultCallback<Set<ComputedValue>>> asyncResult = new AtomicReference<ResultCallback<Set<ComputedValue>>>(async.getCallback());
viewClient.setResultListener(new ViewResultListener() {