* @return the referral connection
*/
static Connection getReferralConnection( LdapURL url, StudioProgressMonitor monitor, Object source )
{
Connection referralConnection = null;
IReferralHandler referralHandler = ConnectionCorePlugin.getDefault().getReferralHandler();
if ( referralHandler != null )
{
referralConnection = referralHandler.getReferralConnection( url );
if ( referralConnection != null && !referralConnection.getJNDIConnectionWrapper().isConnected() )
{
referralConnection.getJNDIConnectionWrapper().connect( monitor );
referralConnection.getJNDIConnectionWrapper().bind( monitor );