map.put(name, field.getText());
}
// send the packet
register.setAttributes(map);
PacketFilter filter = new AndFilter(new PacketIDFilter(register
.getPacketID()), new PacketTypeFilter(IQ.class));
PacketCollector collector = BuddyList.getInstance().getConnection()
.createPacketCollector(filter);
BuddyList.getInstance().getConnection().sendPacket(register);