async loadConfig() {
        const templatePath = path.resolve(__dirname, "..", "..", "config.template.json");
        const configPath = path.resolve(__dirname, "..", "..", "config.json");
        try {
            await ConfigModel.saveTemplateTo(templatePath);
            return await ConfigModel.import(configPath);
        }
        catch(err) {
            console.log("CRITICAL", `Startup of application failed critically because of invalid configuration files.
Please check if the configuration exists at [${configPath}]`);
            process.exit(1);
        }
    }
/**
     * Loads the configuration
     * @returns {Promise<ConfigModel>}
     * @memberof WebApplication
     */
Loads the configuration
@returns {Promise}
@memberof WebApplication
Loads the configuration @returns { Promise } @memberof WebApplication
async loadConfig() {
        const templatePath = path.resolve(__dirname, "..", "..", "config.template.json");
        const configPath = path.resolve(__dirname, "..", "..", "config.json");
        try {
            await ConfigModel.saveTemplateTo(templatePath);
            return await ConfigModel.import(configPath);
        }
        catch(err) {
            console.log("CRITICAL", `Startup of application failed critically because of invalid configuration files.
Please check if the configuration exists at [${configPath}]`);
            process.exit(1);
        }
    }
async loadConfig ( ) { const templatePath = path . resolve ( __dirname , ".." , ".." , "config.template.json" ) ; const configPath = path . resolve ( __dirname , ".." , ".." , "config.json" ) ; try { await ConfigModel . saveTemplateTo ( templatePath ) ; return await ConfigModel . import ( configPath ) ; } catch ( err ) { console . log ( "CRITICAL" , ` ${ configPath } ` ) ; process . exit ( 1 ) ; } }
Loads the configuration
 @returns {Promise<ConfigModel>}
 @memberof WebApplication
Loads the configuration @returns { Promise<ConfigModel > } @memberof WebApplication