protected DataStore getDataStore(ViewInstanceEntity instanceDefinition) {
    if (!dataStoreModules.containsKey(instanceDefinition)) {
      DataStoreModule module = new DataStoreModule(instanceDefinition,"ambari-view-migration");
      dataStoreModules.put(instanceDefinition, module);
    }
    Injector injector = Guice.createInjector(dataStoreModules.get(instanceDefinition));
    return injector.getInstance(DataStoreImpl.class);
  }
Instantiates the data store associated with the instance.

@param instanceDefinition the view instance definition
@return the data store object associated with view instance
ambari-server/src/main/java/org/apache/ambari/server/view/ViewDataMigrationContextImpl.java