@Override
public synchronized DataStore getDataStore() {
if (viewInstanceEntity != null) {
if (dataStore == null) {
Injector injector = Guice.createInjector(new DataStoreModule(viewInstanceEntity));
dataStore = injector.getInstance(DataStoreImpl.class);
}
}
return dataStore;
}