public function createView($object)
    {
        if (!is_object($object)) {
            return null;
        }

        foreach ($this->registry as $className => $viewFactory) {

            if ($object instanceof $className) {
                return $viewFactory->createView($object);
            }
        }
    }