}
return externalIds;
}
private void loadSecuritylData(final boolean write, final Set<ExternalId> externalIds) {
BloombergBulkSecurityLoader bulkSecurityLoader = new BloombergBulkSecurityLoader(getToolContext().getBloombergReferenceDataProvider(), DefaultExchangeDataProvider.getInstance());
SecurityMaster secMaster = getToolContext().getSecurityMaster();
Set<ExternalIdBundle> externalIdBundles = new HashSet<>();
for (ExternalId externalId : externalIds) {
externalIdBundles.add(externalId.toBundle());
}
Map<ExternalIdBundle, ManageableSecurity> loadedSecurities = bulkSecurityLoader.loadSecurity(externalIdBundles);
for (Map.Entry<ExternalIdBundle, ManageableSecurity> entry : loadedSecurities.entrySet()) {
SecurityMasterUtils.addOrUpdateSecurity(secMaster, entry.getValue());
if (isVerbose()) {
System.out.println("Loading security " + entry.getKey().getExternalId(ExternalSchemes.BLOOMBERG_TICKER));
}