@Override
  public void migrateEntity(Class originEntityClass, Class currentEntityClass) throws ViewDataMigrationException {
    if (currentEntityClass == PhoneUser.class) {
      migrationContext.copyAllObjects(originEntityClass, currentEntityClass, new PhoneUserConverter());
    } else {
      migrationContext.copyAllObjects(originEntityClass, currentEntityClass);
    }
  }
Migrate a single persistence entity.

@param originEntityClass    class object of origin (migration source) instance
@param currentEntityClass   class object of current (migration target) instance
ambari-views/examples/phone-list-upgrade-view/src/main/java/org/apache/ambari/view/phonelist/DataMigrator.java