public Task Execute(BehaviorContext <TInstance, TData> context, Behavior <TInstance, TData> next, Document document)
        {
            var notificationDto = new NotificationBuilder()
                                  .SetNotificationType(_notificationProvider.GetNotificationType())
                                  .SetTitle(_notificationProvider.GetTitle(document))
                                  .SetMessage(_notificationProvider.GetMessage(document))
                                  .Build()
                                  .ToDto();

            var sendNotificationCommand = new SendNotificationCommand(context.Instance.CorrelationId, notificationDto);

            context.Send(sendNotificationCommand);
            return(next.Execute(context));
        }