 
 (def new-router-schema
   {:uri-context s/Str
+   :add-exception-context? s/Bool
    :not-found-handler (s/=>* {:status s/Int
                               s/Keyword s/Any}
                              [{:uri s/Str

                            ;; We wrap in some bidi middleware which
                            ;; allows us to form URIs via a
                            ;; keyword-path: [component-key handler-key]
                            (->KeywordIndirection [(routes v)] ckey handlers)]))])))
  (stop [this] this)

  WebService

        (assoc res
               :handler (cond-> (get-in handlers [ckey handler])
                          ;; This should be based on given settings
                          add-exception-context? (wrap-capture-component-on-error :component ckey :handler handler)))
        ;; Otherwise continue to return the original result
        res)))

  (unresolve-handler [this m]
    (bidi/unresolve-handler matched m)))

(defrecord Router [not-found-handler add-exception-context?]
  component/Lifecycle
  (start [this]
    (let [handlers
