catch ( ReferralException re )
{
logResultDone = true;
logResultDoneException = re;
referralsInfo = JNDIConnectionWrapper.handleReferralException( re, referralsInfo );
UrlAndDn urlAndDn = referralsInfo.getNext();
for ( IJndiLogger logger : ConnectionCorePlugin.getDefault().getJndiLoggers() )
{
logger.logSearchResultReference( connection, urlAndDn, referralsInfo, requestNum, null );
}
// ignore exception if referrals handling method is IGNORE OR MANAGE
// follow referral if referrals handling method is FOLLOW
if ( referralsHandlingMethod == ReferralHandlingMethod.IGNORE
|| referralsHandlingMethod == ReferralHandlingMethod.MANAGE )
{
logResultDone = true;
logResultDoneException = null;
return false;
}
else if ( referralsHandlingMethod == ReferralHandlingMethod.FOLLOW )
{
if ( urlAndDn != null )
{
LdapURL url = urlAndDn.getUrl();
Connection referralConnection = JNDIConnectionWrapper
.getReferralConnection( url, monitor, this );
if ( referralConnection != null )
{
logResultDone = false;