private void TraceException(Exception exception)
        {
            bool flag = true;

            if (this.Store.IsLockRetryEnabled() && (exception is InstanceLockedException))
            {
                flag = false;
            }
            if (flag && TD.FoundProcessingErrorIsEnabled())
            {
                TD.FoundProcessingError(exception.Message, exception);
            }
        }
        void TraceException(Exception exception)
        {
            bool traceException = true;

            if (this.Store.IsLockRetryEnabled() && (exception is InstanceLockedException))
            {
                traceException = false;
            }

            if (traceException && TD.FoundProcessingErrorIsEnabled())
            {
                TD.FoundProcessingError((this.InstancePersistenceContext != null) ? this.InstancePersistenceContext.EventTraceActivity : null,
                                        exception.Message, exception);
            }
        }