Broken. Needs to rewrite f to reference the scalatraContext.