* @throws rocks.xmpp.core.stanza.model.StanzaException If the entity returned a stanza error.
* @throws rocks.xmpp.core.session.NoResponseException If the entity did not respond.
* @see <a href="http://xmpp.org/extensions/xep-0065.html#disco">4. Discovering Proxies</a>
*/
public List<StreamHost> discoverProxies() throws XmppException {
ItemNode itemNode = serviceDiscoveryManager.discoverItems(null);
for (Item item : itemNode.getItems()) {
InfoNode infoNode = serviceDiscoveryManager.discoverInformation(item.getJid());
if (infoNode.getFeatures().contains(new Feature(Socks5ByteStream.NAMESPACE))) {
IQ result = xmppSession.query(new IQ(item.getJid(), IQ.Type.GET, new Socks5ByteStream()));
Socks5ByteStream socks5ByteStream = result.getExtension(Socks5ByteStream.class);
if (socks5ByteStream != null) {