// Lookup for each entry with the ObjectClass = Referral value
SearchControls searchControl = new SearchControls();
searchControl.setReturningObjFlag( false );
searchControl.setSearchScope( SearchControls.SUBTREE_SCOPE );
CoreSession adminSession = directoryService.getAdminSession();
PartitionNexus nexus = directoryService.getPartitionNexus();
// We will store each entry's Dn into the Referral tree
SearchOperationContext searchOperationContext = new SearchOperationContext( adminSession, suffix,
referralFilter, searchControl );