It is a static global variable in rest.cpp, initialized to 'false'.
It is set to true by the function restInit, depending on the sixth parameter (_acceptTextXml) of the function.
Only iotAgent uses  this parameter, that has 'false' as default value.