private void AuthorizeDocumentInIDBDocs(string document)
        {
            try
            {
                var authorizeResponse = _docManagementService.Authorize(new AuthorizeDocumentRequest()
                {
                    DocumentNumber = document
                });

                if (!authorizeResponse.IsValid)
                {
                    throw new HttpException("The authorization process did not finish properly in IDBDocs");
                }
            }
            catch (Exception e)
            {
                Logger.GetLogger().WriteError(
                    "PMRPublicController", "Error when authorizing report in IDBDocs: ", e);
                throw;
            }
        }