protected function triggerTransformation($name, array $params, EventInterface $event) {
        $transformation = $this->getTransformation($name);

        if (!$transformation) {
            throw new TransformationException('Transformation "' . $name . '" not registered', 400);
        }

        $transformation
            ->setImage($event->getResponse()->getModel())
            ->setEvent($event)
            ->transform($params);
    }