@Override
  public T update(T newObject, String id) throws ItemNotFound {
    T object = getPigStorage().load(this.resourceClass, Integer.parseInt(id));
    if (object.getOwner().compareTo(this.context.getUsername()) != 0) {
      throw new ItemNotFound();
    }

    newObject.setOwner(this.context.getUsername());
    return super.update(newObject, id);
  }
Constructor
@param responseClass model class
@param context View Context instance
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/PersonalCRUDResourceManager.java