if (getConfigMaster() != null) {
OpenGammaExecutionContext.setConfigMaster(context, getConfigMaster());
}
OpenGammaExecutionContext.setOverrideOperationCompiler(context, ooc);
context.setSecuritySource(getSecuritySource());
context.setPortfolioStructure(new PortfolioStructure(getPositionSource()));
if (getViewProcessor() != null) {
OpenGammaExecutionContext.setViewProcessor(context, getViewProcessor());
}
final ComponentInfo info = new ComponentInfo(FunctionExecutionContext.class, getClassifier());
repo.registerComponent(info, context);