private function overwriteExceptionParams(ValidationException $exception)
{
$params = [];
foreach ($exception->getParams() as $key => $value) {
if (in_array($key, ['template', 'translator'])) {
continue;
}
$params[$key] = $this->baseKey;
}
$exception->configure($this->comparedKey, $params);
return $exception;
}