/**
  * Creates a new ConnectionConfiguration for the specified service name. A DNS SRV lookup will be
  * performed to find out the actual host address and port to use for the connection.
  *
  * @param serviceName the name of the service provided by an XMPP server.
  */
 public ConnectionConfiguration(String serviceName) {
   init(serviceName, ProxyInfo.forDefaultProxy());
 }
 /**
  * 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());
 }