protected function buildConstraints($original)
    {
        $constraints = array();

        foreach ($constraints as $name => $params) {
            $constraints[] = $this->constraintFactory->buildConstraint($name, $params);
        }

        return $constraints;
    }