@Override
  public synchronized <T extends Indexed> T load(Class<T> model, int id) throws ItemNotFound {
    LOG.debug(String.format("Loading %s #%d", model.getName(), id));
    try {
      T obj = context.getDataStore().find(model, String.valueOf(id));
      if (obj != null) {
        return obj;
      } else {
        throw new ItemNotFound();
      }
    } 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