Don't we need

    else {
        return router;
    }

because the bean is already a fully-wired router?