/// <summary>
        /// Clear entity from CallContext and HTTPContext for cleanup.
        /// </summary>
        public void ClearEntity()
        {
            _defaultContext.ClearEntity();

            HttpContext httpContext = GetHTTPContext();

            if (httpContext != null)
            {
                httpContext.Items.Remove(XRayEntity);
            }
        }