public ViewDataMigrator getDataMigrator(ViewDataMigrationContext dataMigrationContext)
      throws ClassNotFoundException {
    if (view != null) {
      if (dataMigrator == null && view.getConfiguration().getDataMigrator() != null) {
        ClassLoader cl = view.getClassLoader();
        dataMigrator = getDataMigrator(view.getConfiguration().getDataMigratorClass(cl),
                                       new ViewContextImpl(view, ViewRegistry.getInstance()),
                                       dataMigrationContext);
      }
    }
    return dataMigrator;
  }
Get the data migrator instance for view instance.

@param dataMigrationContext  the data migration context to inject into migrator instance.
@return  the data migrator.
@throws ClassNotFoundException  if class defined in the archive could not be loaded
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java