// translate alias dereferencing method
searchCtx.addToEnvironment( JAVA_NAMING_LDAP_DEREF_ALIASES,
translateDerefAliasMethod( aliasesDereferencingMethod ) );
// use "throw" as we handle referrals manually
searchCtx.addToEnvironment( Context.REFERRAL, REFERRAL_THROW );
// perform the search
NamingEnumeration<SearchResult> result = searchCtx.search( JNDIConnectionWrapper
.getSaveJndiName( searchBase ), filter, searchControls );
namingEnumeration = new StudioNamingEnumeration( connection, searchCtx, result, null, searchBase,