private ClarifyApplication initializeClarify()
        {
            var configuration = GetDovetailSdkConfiguration(_settings, _crmSettings);

            DbProviderFactory.Provider = DbProviderFactory.CreateProvider(_settings.Type);

            var settings = new StringBuilder();

            foreach (var key in configuration.AllKeys)
            {
                if (key.ToLower().Contains("connectionstring"))
                {
                    continue;
                }

                settings.AppendLine(string.Format("{0}={1}", key, configuration[key]));
            }

            _logger.LogDebug("Initializing Clarify with settings: {0}", settings.ToString());

            var application = ClarifyApplication.Initialize(configuration);

            setSessionDefaultTimeout(_settings);

            return(application);
        }