conn = new SSLXMPPConnection(account.getServer(),account.getPort(),StringUtils.parseServer(account.jid));
else
conn = new XMPPConnection(account.getServer(),account.getPort(),StringUtils.parseServer(account.jid));
}
public IQ sendIQPacketAndWaitForReply(IQ reg) throws XMPPException {
PacketFilter filter = new AndFilter(new PacketIDFilter(reg
.getPacketID()), new PacketTypeFilter(IQ.class));
PacketCollector collector = conn
.createPacketCollector(filter);
conn.sendPacket(reg);
IQ result = (IQ) collector.nextResult(SmackConfiguration