if (node.getAttributes().getNamedItem("class") != null &&
node.getAttributes().getNamedItem("class").getNodeValue().equals("nobottom")) {
String username = node.getChildNodes().item(1).getTextContent().trim();
i++;
String email = nodes.item(i).getChildNodes().item(1).getChildNodes().item(1).getTextContent().trim();
contacts.add(new Contact(username, email));
}
}
return contacts;
} catch (Exception e) {
throw new ContactsException("Yahoo protocol has changed", e);