JsonResponseHandler.prototype.__wantsJson = function () {
    if (this.__request) {
        return (
        !_.isEmpty(this.__request.headers['accept'])
        && (this.__request.headers['accept']).toLowerCase() == 'application/json');