code: func emulationMiddleware(c *router.Context, next router.Handler) {
  	c.Context = buildstore.WithEmulation(c.Context, c.Request.FormValue("emulation") != "")
  	next(c)
  }
docs: // emulationMiddleware enables buildstore emulation if "emulation" query
  // string parameter is not empty.