@Override
  public boolean exists(Class model, int id) {
    try {
      return context.getDataStore().find(model, String.valueOf(id)) != null;
    } catch (PersistenceException e) {
      throw new ServiceFormattedException("Error while finding object in DataStorage", e);
    }
  }
Constructor
@param context View Context instance
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java