@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);
}