if (connection == null) {
//Connection.DEBUG_ENABLED = true;
ConnectionConfiguration config = new ConnectionConfiguration(
ServerInfo.currentServerInfo.XMPPserver, 5223);
config.setSecurityMode(SecurityMode.enabled);
config.setSocketFactory(new DummySSLSocketFactory());
config.setCompressionEnabled(true);
config.setServiceName("pvp.net");
connection = new XMPPConnection(config);
}