@Override
  public synchronized void store(Indexed obj) {
    try {
      Indexed newBean = (Indexed) BeanUtils.cloneBean(obj);
      context.getDataStore().store(newBean);
      obj.setId(newBean.getId());
    } catch (Exception e) {
      throw new ServiceFormattedException("Error while saving object to DataStorage", e);
    }
  }
Constructor
@param context View Context instance
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java