if (!BloombergDataUtils.isValidField(currencyCode)) {
logMissingData("equity currency", name);
return null;
}
final Exchange exchangeData = _exchangeDataProvider.getExchange(micExchangeCode);
if (exchangeData == null) {
logMissingData("equity exchange data (common stock)", name);
return null;
}
UniqueId bbgUniqueId = BloombergSecurityProvider.createUniqueId(bbgUniqueIdString);
Currency currency = Currency.of(currencyCode.toUpperCase());
GICSCode gicsCode = gicsCodeString != null ? GICSCode.of(gicsCodeString) : null;
EquitySecurity security = new EquitySecurity(exchangeData.getDescription(), exchangeData.getMic(), name, currency);
security.setUniqueId(bbgUniqueId);
security.setName(name);
security.setShortName(ticker);
if (gicsCode != null) {
security.setGicsCode(gicsCode);