protected function validateConfig(SettingsInterface $settings)
    {
        foreach ($this->getRequiredSettings() as $required_setting) {
            if (is_null($settings->getValues($required_setting))) {
                throw new ConfigError(
                    "Missing mandatory setting '" . $required_setting . "' for config."
                );
            }
        }
    }