private LegacyContact convertMsnContact(MsnContact msnContact)
	{
		LegacyContact legContact = new LegacyContact();
		MsnObject obj;
		
		legContact.displayName = msnContact.getDisplayName();
		legContact.email = msnContact.getEmail().getEmailAddress();
		legContact.personalMessage = msnContact.getPersonalMessage();
		 
		if(msnContact.getStatus() == MsnUserStatus.ONLINE)
			legContact.status = LegacyUserStatus.AVAILABLE;
		else if(msnContact.getStatus() == MsnUserStatus.AWAY || msnContact.getStatus() == MsnUserStatus.BE_RIGHT_BACK || msnContact.getStatus() == MsnUserStatus.IDLE || msnContact.getStatus() == MsnUserStatus.OUT_TO_LUNCH)
			legContact.status = LegacyUserStatus.AWAY;
		else if(msnContact.getStatus() == MsnUserStatus.BUSY)
			legContact.status = LegacyUserStatus.BUSY; 
		//else if(msnContact.getStatus() == MsnUserStatus.OFFLINE && msnContact.getOldStatus() != MsnUserStatus.OFFLINE)
			//legContact.status = LegacyUserStatus.UNAVAILABLE;
		else
			legContact.status = LegacyUserStatus.UNAVAILABLE;
			
		for(MsnGroup grp : msnContact.getBelongGroups())
			legContact.addGroup(grp.getGroupName());
		
		if((obj = msnContact.getAvatar()) != null) {
			legContact.avatar = obj.getMsnObj();
			legContact.avatarSha1 = obj.getSha1d();
		}
		
		return legContact;
	}