docs: function (req, res, next) {
                  // Delayed resolution of the isLoggedIn middleware.
                  if (server.registry.has('localUserMiddleware')) {
                      const middleware = server.registry.get('localUserMiddleware');
                      middleware.isLoggedInMiddleware()(req, res, next);
                  } else {
                      next(new restifyErrors.ForbiddenError(`Server configuration error, 'localUserMiddleware' not found.`));
                  }
              }