 (schema/defn ^:always-validate
   create-server :- Server
   "Construct a Jetty Server instance."
-  [webserver-context :- WebserverServiceContext
+  [webserver-context :- ServerContext
    config :- config/WebserverServiceConfig]
   (let [server (Server. (QueuedThreadPool. (:max-threads config)))]
     (when (:http config)

                                       config/WebserverSslPemConfig)
   (schema/optional-key :callback-fn) (schema/pred ifn?)})

(def WebserverServiceContext
  {:state     Atom
   :handlers  ContextHandlerCollection
   :server    (schema/maybe Server)})

  merge-webserver-overrides-with-options :- config/WebserverServiceRawConfig
  "Merge any overrides made to the webserver config settings with the supplied
   options."
  [webserver-context :- ServerContext
   options :- config/WebserverServiceRawConfig]
  {:post [(map? %)]}
  (let [overrides (:overrides (swap! (:state webserver-context)
