@Override
  public Long update(JUserDetails domain) {
    final long userId = Long.parseLong(domain.getId());
    Object userKey = profileService.getDao().getPrimaryKey(null, userId);
    DProfile profile = profileService.getDao().findByPrimaryKey(userId);

    profile.setDisplayName(domain.getDisplayName());
    profile.setEmail(domain.getEmail());
    profile.setPhoneNumber(domain.getPhoneNumber());
    profileService.update(profile);

    return userId;
  }
 protected void convertDonation(DDonation from, JUserDetails to) {
   to.setDonationCount(1 + (null != to.getDonationCount() ? to.getDonationCount() : 0));
   if (null == to.getLastDonation()
       || to.getLastDonation().getDonationDate() < from.getDonationDate().getTime()) {
     to.setLastDonation(DonationLeaf.CONVERTER.convertDomain(from));
   }
 }