*/
protected void initViewProcessor(final ComponentRepository repo, final GenericApplicationContext appContext) {
final ViewProcessor viewProcessor = appContext.getBean(ViewProcessor.class);
final ComponentInfo info = new ComponentInfo(ViewProcessor.class, getClassifier());
if (getJmsBrokerUri() != null) {
info.addAttribute(ComponentInfoAttributes.JMS_BROKER_URI, getJmsBrokerUri());
}
repo.registerComponent(info, viewProcessor);
if (isPublishRest()) {
final DataViewProcessorResource vpResource = new DataViewProcessorResource(viewProcessor, repo.getInstance(FunctionCompilationContext.class, "main").getRawComputationTargetResolver(),
getVolatilityCubeDefinitionSource(), getJmsConnector(), getFudgeContext(), getScheduler(), getHistoricalTimeSeriesSource());