protected function buildConstraint(array $constraint)
    {
        $extraFormConstraint = $this
            ->constraintRegistry
            ->getConstraint($constraint['extra_form_constraint'])
        ;

        $className = $extraFormConstraint->getClassName();
        $options = isset($constraint['options']) ? $constraint['options'] : array();

        return new $className($options);
    }