public static Guid AddReferenceId(this Exception exception)
        {
            var refernceId = exception.GetReferenceId();
            if (refernceId.Equals(Guid.Empty))
            {
                refernceId = Guid.NewGuid();

                exception.AddCustomProperty(ExceptionReferenceIdKey, refernceId);
            }

            return refernceId;
        }