 	import mx.collections.Sort;
 	import mx.collections.SortField;
 	
-	import org.igniterealtime.xiff.core.EscapedJID;
-	import org.igniterealtime.xiff.core.UnescapedJID;
-	import org.igniterealtime.xiff.core.XMPPConnection;
-	import org.igniterealtime.xiff.data.ExtensionClassRegistry;
-	import org.igniterealtime.xiff.data.IQ;
-	import org.igniterealtime.xiff.data.Presence;
-	import org.igniterealtime.xiff.data.XMLStanza;
-	import org.igniterealtime.xiff.data.XMPPStanza;
-	import org.igniterealtime.xiff.data.im.RosterExtension;
-	import org.igniterealtime.xiff.data.im.RosterGroup;
-	import org.igniterealtime.xiff.data.im.RosterItemVO;
+	import org.igniterealtime.xiff.core.*;
+	import org.igniterealtime.xiff.data.*;
+	import org.igniterealtime.xiff.data.im.*;
 	import org.igniterealtime.xiff.events.*;
 	
 	/**

							else
							{
								var groups:Array = item.groupNames;

								if( item.subscription.toLowerCase() != RosterExtension.SUBSCRIBE_TYPE_REMOVE &&  item.subscription.toLowerCase() != RosterExtension.SUBSCRIBE_TYPE_NONE)
								{
									// Add this item to the roster if it's not there and if the subscription type is not equal to 'remove' or 'none'
									addRosterItem( jid, item.name, RosterExtension.SHOW_UNAVAILABLE, "Offline", groups, item.subscription.toLowerCase(), item.askType != null ? item.askType.toLowerCase() : RosterExtension.ASK_TYPE_NONE );
								}
								else if( (item.subscription.toLowerCase() == RosterExtension.SUBSCRIBE_TYPE_NONE || item.subscription.toLowerCase() == RosterExtension.SUBSCRIBE_TYPE_FROM) && item.askType == RosterExtension.ASK_TYPE_SUBSCRIBE )
								{
									// A contact was added to the roster, and its authorization is still pending.
									addRosterItem( jid, item.name, RosterExtension.SHOW_PENDING, "Pending", groups, item.subscription.toLowerCase(), item.askType != null ? item.askType.toLowerCase() : RosterExtension.ASK_TYPE_NONE );
								}
							}
						}

						if (!item is XMLStanza)
							continue;
						
						var askType:String = item.askType != null ? item.askType.toLowerCase() : RosterExtension.ASK_TYPE_NONE;
						addRosterItem( new UnescapedJID(item.jid), item.name, RosterExtension.SHOW_UNAVAILABLE, 
							"Offline", item.groupNames, item.subscription.toLowerCase(), askType);
					}
				}
				enableAutoUpdate();
