if we have not this, and you file a bug, then we probably need this logic now here, then please add a comment with the bug number. 

And please export this logic to another function that would take a callback, like `getRetrievalModeSetting(callback)`