final Collection<UniqueId> loadSecurities = loadSecurities(tickers);
final SecurityMaster secMaster = getToolContext().getSecurityMaster();
for (final UniqueId uniqueId : loadSecurities) {
final SecurityDocument securityDocument = secMaster.get(uniqueId);
final EquitySecurity security = (EquitySecurity) securityDocument.getSecurity();
final GICSCode gics = security.getGicsCode();
if (gics == null || gics.isPartial()) {
continue;
}
final String sector = SECTORS.get(gics.getSectorCode());
final String industryGroup = gics.getIndustryGroupCode();
final String industry = gics.getIndustryCode();
final String subIndustry = gics.getSubIndustryCode();
// create portfolio structure
ManageablePortfolioNode sectorNode = rootNode.findNodeByName(sector);
if (sectorNode == null) {
s_logger.debug("Creating node for sector {}", sector);