Jid requester = xmppSession.getConnectedResource();
streamHosts.add(new StreamHost(requester, localSocks5Server.getAddress(), localSocks5Server.getPort()));
}
// Then discover proxies as alternative stream hosts.
XmppException xmppException = null;
try {
streamHosts.addAll(discoverProxies());
} catch (XmppException e) {
// If no proxies are found, ignore the exception.
xmppException = e;