protected function applyModuleConfig($config)
    {
        if (isset($config['mpf\\web\\request\\HTML'])) {
            foreach ($config['mpf\\web\\request\\HTML'] as $k => $v) {
                $this->$k = $v;
            }
        }
        if (isset($config['mpf\\WebApp'])) {
            foreach ($config['mpf\\WebApp'] as $k => $v) {
                WebApp::get()->$k = $v;
            }
        }
        foreach ($config as $class => $options) {
            if (in_array($class, ['namespace', 'path'])) // this are keywords for module itself not other classes
                continue;
            Config::get()->set($class, $options);
        }
        return $this;
    }