@Override
  public synchronized void store(Indexed obj) {
    String modelIndexingPropName = getIndexPropertyName(obj.getClass());

    if (obj.getId() == null) {
      int lastIndex = getConfig().getInt(modelIndexingPropName, 0);
      lastIndex ++;
      getConfig().setProperty(modelIndexingPropName, lastIndex);
      obj.setId(Integer.toString(lastIndex));
    }

    String modelPropName = getItemPropertyName(obj.getClass(), Integer.parseInt(obj.getId()));
    String json = serialize(obj);
    write(modelPropName, json);
  }
Returns config instance, adapter to Persistence API
@return config instance
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/KeyValueStorage.java