public function validate()
{
$validator = ConfigValidator::getInstance();
if (!$validator->validate($this->data, $this->getContextRules(), $this->extraFieldsAllowed)) {
throw new ConfigurationException('Config is not valid for ' . ($this->contextObject ? get_class($this->contextObject) : null) . "\n" . implode("\n", $validator->getErrorsArray(false)));
}
}