code: public TransportResolver getResolver(JingleSession session) throws XMPPException, SmackException, InterruptedException {
          TransportResolver resolver = createResolver(session);
          if (resolver == null) {
              resolver = new BasicResolver();
          }
          resolver.initializeAndWait();
  
          return resolver;
      }
docs: Get a new Transport Resolver to be used in a Jingle Session.
  
  @return the TransportResolver to be used
  @throws InterruptedException