 
 (schema/defn ^:always-validate
   add-handler :- ContextHandler
-  [webserver-context :- WebserverServiceContext
+  [webserver-context :- ServerContext
    handler :- ContextHandler]
   (.addHandler (:handlers webserver-context) handler)
   handler)

                        "already been set")))))))

(schema/defn ^:always-validate join
  [webserver-context :- WebserverServiceContext]
  {:pre [(started? webserver-context)]}
  (.join (:server webserver-context)))


;;; Public

(schema/defn ^:always-validate
  initialize-context :- ServerContext
  "Create a webserver-context which contains a HandlerCollection and a
  ContextHandlerCollection which can accept the addition of new handlers
  before the webserver is started."
