public function getRoute($name)
    {
        if (!isset($this->routes[$name])) {
            throw new \LogicException(sprintf('Route "%s" not found.', $name));
        }
        
        return $this->routes[$name];
    }