public function createView($viewType)
    {
        if (class_exists($viewType)) {
            $reflectionClass = new \ReflectionClass($viewType);

            if ($reflectionClass->implementsInterface(AjaxViewInterface::class)) {
                return $reflectionClass->newInstance();
            }
        }

        throw new AjaxModalsException("View type $viewType does not exists.");
    }