Dn suffixDn = directoryService.getDnFactory().create( suffix );
CoreSession adminSession = new DefaultCoreSession(
new LdapPrincipal( schemaManager, adminDn, AuthenticationLevel.STRONG ), directoryService );
SearchOperationContext searchOperationContext = new SearchOperationContext( adminSession, suffixDn, filter,
controls );
searchOperationContext.setAliasDerefMode( AliasDerefMode.NEVER_DEREF_ALIASES );
EntryFilteringCursor subentries = nexus.search( searchOperationContext );
// Loop on all the found Subentries, parse the SubtreeSpecification
// and store the subentry in the subrentry cache