private async Task LoadConfigurationAsync()
        {
            try
            {
                _variables.ClearVariables();

                var template = await _templateManager.GetTemplateAsync(_key);

                Configuration?.Dispose();

                Configuration = _elementFactory.CreateConfiguration(_key, template);

                Configuration.Initialize();

                SelectedPage = Configuration.Pages.FirstOrDefault();
            }
            catch (Exception ex)
            {
                _logger.Log(ex.Message, Category.Exception, Priority.High);
            }
        }