if (underlyingId != null) {
OrganizationSearchRequest request = new OrganizationSearchRequest();
if (underlyingId.getScheme().equals(ExternalSchemes.MARKIT_RED_CODE)) {
request.setObligorREDCode(underlyingId.getValue());
OrganizationSearchResult searchResult = _organizationMaster.search(request);
ManageableOrganization organization = searchResult.getSingleOrganization();
if (organization != null) {
_out.put("underlyingOrganization", organization);
}
} else {
s_logger.warn("{} does not currently support CDSOption underlying lookup based on {}", WebSecuritiesResource.class, underlyingId.getScheme().getName());