private function registerRoute($pattern, $target, array $requestMethods = [])
    {
        $this->bootstrapRouter();

        $route = new Route($pattern, $target);

        if (!empty($requestMethods)) {
            $route->setAcceptableMethods($requestMethods);
        }

        $this->router->register($route);

        return $route;
    }