// translate alias dereferencing method
searchCtx.addToEnvironment(
"java.naming.ldap.derefAliases", translateDerefAliasMethod( aliasesDereferencingMethod ) ); //$NON-NLS-1$
// use "throw" as we handle referrals manually
searchCtx.addToEnvironment( Context.REFERRAL, REFERRAL_THROW );
// perform the search
namingEnumeration = searchCtx.search( new LdapName( searchBase ), filter, searchControls );
namingEnumeration = new StudioNamingEnumeration( connection, namingEnumeration, searchBase, filter,
searchControls, aliasesDereferencingMethod, referralsHandlingMethod, controls, monitor,