public async Task <bool?> Handle(ProductCodesCommand message, CancellationToken cancellationToken)
        {
            var application = await _applicationRepository.GetAsync(message.ApplicationId);

            if (application != null)
            {
                CreditLineLimits cll = new CreditLineLimits
                {
                    ProductCodes = message.ProductCodes
                };
                var res = _arrangementRequestRepository.SetCreditLineProductCodes
                              (message.ApplicationId, message.ArrangementRequestId, cll, application);
                //var setCreditLineProductCodes = await _arrangementRequestRepository.SetCreditLineProductCodes
                //    (applicationNumber, arrangementRequestId, command, application);
                // return Ok();
                //credit-line-product-codes-added
                //arrangement-request-availability-changed

                var appNumberString = "0000000000" + message.ApplicationId;
                appNumberString = appNumberString.Substring(appNumberString.Length - 10);
                _logger.LogDebug("Before publish ", appNumberString);
                var messageObj = _eventFactory.CreateBuilder("offer", "credit-line-limits-added")
                                 .AddBodyProperty("application-number", appNumberString)
                                 .AddHeaderProperty("application-number", appNumberString)
                                 .Build();
                _eventBus.Publish(messageObj);
                _logger.LogDebug("After publish ", appNumberString);
                return(await res);
            }
            return(null);
        }