if (assignment.getInvestmentVehicle() instanceof Security)
{
PortfolioSnapshot portfolio = snapshot.getJointPortfolio();
SecurityPosition p = portfolio.getPositionsBySecurity().get(assignment.getInvestmentVehicle());
if (p != null)
actual += Math.round(p.calculateValue() * assignment.getWeight()
/ (double) Classification.ONE_HUNDRED_PERCENT);
}
else if (assignment.getInvestmentVehicle() instanceof Account)
{
for (AccountSnapshot s : snapshot.getAccounts())