for ( int r = 0; r < re.getReferrals().length; r++ )
{
// parse referral URL
String referral = re.getReferrals()[r];
URL referralUrl = new URL( referral );
// get referral connection
IBrowserConnection referralConnection = referralHandler.getReferralConnection( referralUrl );
if ( referralConnection == null )
{