public function getRouteDefinition(string $name):array
    {
        $this->prepare();

        if (!isset($this->routes[$name]) || !is_array($this->routes[$name])) {
            throw new \RuntimeException(sprintf(
                'Route "%s" does not exist or not array.',
                $name
            ));
        }

        return $this->routes[$name];
    }