protected void handleIQEvent(IQEvent evt) {
final IQ iq = evt.getIQ();
if (iq instanceof RosterPacket) {
// Roster packet...report to UI
final RosterPacket rosterPacket = (RosterPacket) iq;
if (rosterPacket.getType() == IQ.Type.SET
|| rosterPacket.getType() == IQ.Type.RESULT) {
for (final Iterator i = rosterPacket.getRosterItems()
.iterator(); i.hasNext();) {
final RosterPacket.Item item = (RosterPacket.Item) i.next();
final RosterPacket.ItemType itemType = item.getItemType();
XMPPID newID = createIDFromName(item.getUser());
boolean remove = false;