public function mapErrorsToForm(ConstraintViolationListInterface $errors, FormInterface $form)
    {
        $messages = $this->extractMessages($errors);

        $this->mapMessagesToElementCollection($messages, $form->getChildren());
    }