else if (infoquery.getType().equals("set"))
{
//add result
for (Iterator i = roster.getItems(); i.hasNext();)
{
RosterItem item = (RosterItem) i.next();
JID jid = item.getJID();
String nick = item.getName();
if (nick == null) nick = jid.toString();
NormalJIDStatus oldJIDStatus = (NormalJIDStatus) jidStatussen.get(jid);
if ("remove".equals(item.getSubscription()))
{
removeFromRoster(oldJIDStatus, item, jid);
}
else if (oldJIDStatus == null)
{
//group must be present (no unfiled) except when server
if (item.getGroups() != null || jid.getUser() == null) addToRoster(nick, item, jid);
}
else
{
changeItem(oldJIDStatus, nick, item, jid);
}