/// <summary>
        /// Handles the resulted context.
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public HttpResult Handle(MessagingContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            HttpStatusCode statusCode = DetermineHttpCodeFrom(context);

            Logger.Debug($"Respond with {(int)statusCode} {statusCode}: Receipt/Errors are responded sync");

            return(HttpResult.FromAS4Message(statusCode, context.AS4Message));
        }