ViewCalculationConfiguration calcConfig = viewDefinition.getCalculationConfiguration(calcConfigName);
final ValueMappings valueMappings = new ValueMappings(_compiledViewDef);
final ViewCalculationResultModel calculationResult = _viewComputationResultModel.getCalculationResult(calcConfigName);
final Map<String, Set<Pair<String, ValueProperties>>> portfolioRequirementsBySecurityType = calcConfig.getPortfolioRequirementsBySecurityType();
Portfolio portfolio = _compiledViewDef.getPortfolio();
PortfolioNodeTraverser traverser = new DepthFirstPortfolioNodeTraverser(new PortfolioNodeTraversalCallback() {
@Override
public void preOrderOperation(PortfolioNode parentNode, Position position) {
UniqueId positionId = position.getUniqueId().toLatest();
// then construct a chained target spec pointing at a specific position.