/**
* Adds contacts to the contact store, and updates any existing profiles.
*/
private void updateWith(ContactList someContacts) {
for (int i = 0; i < someContacts.size(); i++) {
Contact contact = someContacts.get(i);
String id = contact.getAddress();
if (id == null) {
// Empty contact; discard it.
continue;
}
contacts.put(id, contact);