public void update(final ObjectId id, final T doc) {
executeWrite(new ErrorCheckingDBConversation() {
@Override
public T doExecuteWithErrorChecking(Connection connection) {
connection.execute(new UpdateRequest<T>(dbName(), idQuery(id), new UpdateOptionsBuilder(), doc, documentCoders, queryCoders));
return null;
};
});
}