private FudgeContext _fudgeContext = OpenGammaFudgeContext.getInstance();
//-------------------------------------------------------------------------
@Override
public void init(ComponentRepository repo, LinkedHashMap<String, String> configuration) {
LiveResultsServiceBean bean = new LiveResultsServiceBean();
bean.setViewProcessor(getViewProcessor());
bean.setPositionSource(getPositionSource());
bean.setSecuritySource(getSecuritySource());
bean.setComputationTargetResolver(getComputationTargetResolver());
bean.setUserPortfolioMaster(getUserPortfolioMaster());
bean.setUserPositionMaster(getUserPositionMaster());
bean.setUserConfigMaster(getUserConfigMaster());
bean.setSnapshotMaster(getSnapshotMaster());
bean.setPortfolioAggregators(getPortfolioAggregationFunctions());
bean.setUser(getUser());
bean.setFudgeContext(getFudgeContext());
ExecutorServiceFactoryBean execBean = new ExecutorServiceFactoryBean();
execBean.setStyle(Style.CACHED);
bean.setExecutorService(execBean.getObjectCreating());
WebAnalyticsResource resource = new WebAnalyticsResource(bean);
repo.registerServletContextAware(resource);
repo.getRestComponents().publishResource(resource);
}