This contradicts with the comments about this function. 
If the function intent to just set "kv-pair", this should report as an error.