*/
public List<Contact> getContacts() throws ContactsException {
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();