protected function dump(Route $route, $name)
    {
        if (!$route->isVisible()) {
            return;
        }

        if (!in_array('GET', $route->getMethods())) {
            throw new Exception(sprintf('Only GET mehtod supported, "%s" given.', $name));
        }

        if ($route->hasContent()) {
            if ($route->isList()) {
                if ($route->isPaginated()) {
                    $this->buildPaginatedRoute($route, $name);
                } else {
                    $this->buildListRoute($route, $name);
                }
            } else {
                $this->buildContentRoute($route, $name);
            }
        } else {
            $this->logger->log(sprintf('Building route <comment>%s</comment>', $name));
            $this->builder->build($route, $name);
        }
    }