docs: @SuppressWarnings("deprecation")
      public static RTPBridge relaySession(XMPPConnection connection, String sessionID, String pass, TransportCandidate proxyCandidate, TransportCandidate localCandidate) throws NotConnectedException, InterruptedException {
  
          if (!connection.isConnected()) {
              return null;
          }
  
          RTPBridge rtpPacket = new RTPBridge(sessionID, RTPBridge.BridgeAction.change);
          rtpPacket.setTo(RTPBridge.NAME + "." + connection.getXMPPServiceDomain());
          rtpPacket.setType(Type.set);
  
          rtpPacket.setPass(pass);
          rtpPacket.setPortA(localCandidate.getPort());
          rtpPacket.setPortB(proxyCandidate.getPort());
          rtpPacket.setHostA(localCandidate.getIp());
          rtpPacket.setHostB(proxyCandidate.getIp());
  
          // LOGGER.debug("Relayed to: " + candidate.getIp() + ":" + candidate.getPort());
  
          StanzaCollector collector = connection.createStanzaCollectorAndSend(rtpPacket);
  
          RTPBridge response = collector.nextResult();
  
          // Cancel the collector.
          collector.cancel();
  
          return response;
      }