public function createView($object)
    {
        foreach ($this->factories as $factory) {
            $view = $factory->createView($object);

            if (null !== $view) {
                return $view;
            }
        }
    }