Dev Ported getconfig function from Webapplication to Consoleapplication.