public XMPPConnection(ConnectionConfiguration config) throws XMPPException {
public XMPPConnection(String serviceName) throws XMPPException {  DNSUtil.HostAddress address = DNSUtil.resolveXMPPDomain(serviceName);  ConnectionConfiguration config = new ConnectionConfiguration(address.getHost(), address.getPort(), serviceName); config.setTLSEnabled(true); config.setCompressionEnabled(false); config.setSASLAuthenticationEnabled(true); config.setDebuggerEnabled(DEBUG_ENABLED);
    public XMPPConnection(ConnectionConfiguration config) throws XMPPException {        // Set the new connection configuration        connectUsingConfiguration(config, null);    }