public static void ExecuteLogout(this AuthorizeAttribute authAttribute, HttpActionContext actionContext, ResponseBase r, Controllers.RESTAPIControllerBase Controller)
        {
            Fault f = new Fault(Responses.Faults.HPIDSessionTimeout, null);

            f.StatusText = string.Format($"ErrorCategory_{f.ErrorCategory.ToString()}", TranslationUtils.Locale(Controller.LanguageCode, Controller.CountryCode));
            r.ErrorList.Add(f);

            if (SettingRepository.Get <bool>("LogoutOnNonAuthorizedRequest", false))
            {
                ICustomerHPIDUtils customerHPIDUtils = DependencyInjector.Get <ICustomerHPIDUtils, CustomerHPIDUtils>();
                customerHPIDUtils.ExecuteLogout(r, Controller.UserID, Controller.SessionToken, Controller.CallerId);
            }
            actionContext.Response = actionContext.Request.CreateResponse(HttpStatusCode.OK, r, GlobalConfiguration.Configuration);
        }