/** {@inheritDoc} */
 @Override
 public boolean addContactByEmail(IUser user, String email) {
   boolean added = false;
   IContact contact = contactService.getByEmail(email);
   if (user != null && contact != null) {
     user.getContacts().add(contact);
     update(user);
     added = true;
   }
   return added;
 }
 /** {@inheritDoc} */
 @Override
 public boolean addContactByName(IUser user, String name) {
   boolean added = false;
   IContact contact = contactService.getByName(name);
   if (user != null) {
     user.getContacts().add(contact);
     update(user);
     added = true;
   }
   return added;
 }
 /** {@inheritDoc} */
 @Override
 public boolean removeContactById(IUser user, String contactId) {
   boolean result = false;
   if (user != null && contactId != null) {
     IContact contact = contactService.getById(contactId);
     if (contact.getId() != null) {
       user.getContacts().remove(contact);
       update(user);
       result = true;
     }
   }
   return result;
 }