public override void Initialize() { Declarations = new DeclarationsHome(); Definitions = new DefinitionsHome(Declarations); try { // Are we loading configuration data from xml file or a database? That is // specified in the 'Settings.Configuration.StorageType'. // Values are 'Db' or 'Xml'. IConfigLoaderFactory configLoaderFactory = new ConfigLoaderFactory(); ConfigLoader = configLoaderFactory.InitializeConfigurationLoader(Settings.Configuration.StorageType, this); ProxyHome.Instance.RetrieveStatisticsProxy(ConfigKeyKeeper.Instance.AccessKey).SplitTimer($@"... ... initialized configuration loader with storage type '{Settings.Configuration.StorageType}'"); } catch (Exception e) { string s = "Unexpected error occurred while trying to initialize the configuration loader?"; Log.Error(s, e); throw new ConfigurationComponentException(this, -1, s, e); } }