/**
  * Creates a new ConnectionConfiguration for a connection that will connect to the desired host
  * and port with desired proxy.
  *
  * @param host the host where the XMPP server is running.
  * @param port the port where the XMPP is listening.
  * @param proxy the proxy through which XMPP is to be connected
  */
 public ConnectionConfiguration(String host, int port, ProxyInfo proxy) {
   initHostAddresses(host, port);
   init(host, proxy);
 }
 /**
  * Creates a new ConnectionConfiguration for a connection that will connect to the desired host
  * and port.
  *
  * @param host the host where the XMPP server is running.
  * @param port the port where the XMPP is listening.
  */
 public ConnectionConfiguration(String host, int port) {
   initHostAddresses(host, port);
   init(host, ProxyInfo.forDefaultProxy());
 }