/** * Processes the response controls on the supplied reference and returns a corresponding search item. * * @param ref to process * * @return search item */ protected SearchItem processSearchResultReference(final SearchResultReference ref) { logger.trace("reading search reference: {}", ref); final Referral r = ref.getReferral(); ResponseControl[] respControls = null; if (ref.getControls() != null && ref.getControls().size() > 0) { respControls = processResponseControls(config.getControlProcessor(), request.getControls(), ref); } final SearchReference sr = new SearchReference(ref.getMessageId(), respControls, r.getLdapUrls()); return new SearchItem(sr); }