implement PutDocument for updateEntity