PlatformConfigUtils.configureSystemProperties();
ConfigurableApplicationContext appcontext = getApplicationContext();
ReferenceDataProvider bbgRefDataProvider = appcontext.getBean("sharedReferenceDataProvider", ReferenceDataProvider.class);
String bloombergKey = BloombergDomainIdentifierResolver.toBloombergKey(underlyingId);
SecurityProvider secProvider = appcontext.getBean("bloombergSecurityProvider", SecurityProvider.class);
DbSecurityMaster secMaster = appcontext.getBean("dbSecurityMaster", DbSecurityMaster.class);
DefaultSecurityLoader loader = new DefaultSecurityLoader(secMaster, secProvider);
Set<ExternalId> optionChain = BloombergDataUtils.getOptionChain(bbgRefDataProvider, bloombergKey);
if (optionChain != null && !optionChain.isEmpty()) {