private String getSenderMsisdn() {
   for (Contact contact : this.contactDao.getAllContacts()) {
     if (contact.getPhoneNumber() != null) {
       return contact.getPhoneNumber();
     } else if (contact.getOtherPhoneNumber() != null) {
       return contact.getOtherPhoneNumber();
     }
   }
   return null;
 }
 private Contact getContact(String phoneNumber) {
   for (Contact contact : contactDao.getAllContacts()) {
     if (contact.getPhoneNumber().equalsIgnoreCase(phoneNumber)
         || contact.getOtherPhoneNumber().equalsIgnoreCase(phoneNumber)) {
       return contact;
     }
   }
   return null;
 }