@Override
    public synchronized JRTConnection switchConnection(Connection failingConnection) {
        List<JRTConnection> sources = getSources();
        if (sources.size() <= 1) return currentConnection;

        if ( ! currentConnection.equals(failingConnection)) return currentConnection;

        return switchConnection();
    }
Returns the current JRTConnection instance

@return a JRTConnection
config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java