public T update(T newObject, String id) throws ItemNotFound {
    newObject.setId(id);
    this.save(newObject);
    return newObject;
  }
Update operation
@param newObject new object
@param id identifier of previous object
@return model object
@throws ItemNotFound
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/CRUDResourceManager.java