final SimplePortfolioNode root = portfolio.getRootNode();
// Portfolio node with position with a trade with an attribute
SimplePortfolioNode node = new SimplePortfolioNode("TradeAttr");
SimpleTrade trade = createTrade(securities);
trade.addAttribute("Present Value.DEFAULT_ForwardCurve", "FooForward");
trade.addAttribute("*.DEFAULT_FundingCurve", "FooFunding");
SimplePosition position = createPosition(securities);
position.addTrade(trade);
node.addPosition(position);
root.addChildNode(node);
// Portfolio node with position with a trade without an attribute