try {
login();
List<Contact> contacts = new ArrayList<Contact>();
BuddyList list = msn.getBuddyGroup().getAllowList();
for (Iterator iter = list.iterator(); iter.hasNext();) {
MsnFriend friend = (MsnFriend) iter.next();
contacts.add(new Contact(new String(friend.getFriendlyName()
.getBytes(), "UTF-8"), friend.getLoginName()));
}
logout();
return contacts;
} catch (Exception e) {
throw new ContactsException("msn protocol has changed", e);