private FlexiBean createSearchResultData(final PagingRequest pr, final String shortName, final String obligorTicker,
final String obligorREDCode, final List<String> organizationIdStrs, final UriInfo uriInfo) {
FlexiBean out = createRootData();
OrganizationSearchRequest searchRequest = new OrganizationSearchRequest();
searchRequest.setPagingRequest(pr);
searchRequest.setObligorShortName(StringUtils.trimToNull(shortName));
searchRequest.setObligorTicker(StringUtils.trimToNull(obligorTicker));
searchRequest.setObligorREDCode(StringUtils.trimToNull(obligorREDCode));
for (String organizationIdStr : organizationIdStrs) {
searchRequest.addOrganizationObjectId(ObjectId.parse(organizationIdStr));
}
out.put("searchRequest", searchRequest);
if (data().getUriInfo().getQueryParameters().size() > 0) {
OrganizationSearchResult searchResult = data().getOrganizationMaster().search(searchRequest);