@Override
    public void convert(Object orig, Object dest) {
      PhoneUser destPhone = (PhoneUser) dest;

      BeanUtils.copyProperties(orig, dest);
      if (destPhone.getName() == null) {
        destPhone.setSurname("<no surname>");
      } else {
        String[] parts = destPhone.getName().split(" ");
        if (parts.length > 1) {
          destPhone.setSurname(parts[parts.length - 1]);
        } else {
          destPhone.setSurname("<no surname>");
        }
      }

    }
Adds surname to the new version of PhoneData. If original user name
contained several words, last word is used as surname.

@param orig a single origin entity object.
@param dest an empty object of current persistence entity class.
ambari-views/examples/phone-list-upgrade-view/src/main/java/org/apache/ambari/view/phonelist/DataMigrator.java