   (let [options (-> options
                   kwargs-or-map->map
                   (validate-options run)
-                  internal/available-port
+                  wboss/available-port
                   undertow/options-maybe
-                  (->> (merge internal/create-defaults internal/register-defaults)))]
-    (let [server (internal/server options)]
-      (internal/mount server handler options)
-      (update-in options [:contexts server] conj (internal/mounts options)))))
+                  (->> (merge wboss/create-defaults wboss/register-defaults)))]
+    (let [server (wboss/server options)]
+      (wboss/mount server handler options)
+      (update-in options [:contexts server] conj (wboss/mounts options)))))
 
 (set-valid-options! run (-> (opts->set Web$CreateOption Web$RegisterOption)
                           (conj :contexts)

                      (resolve handler))
                  `(var ~handler)
                  handler)]
    `(internal/run-dmc* run ~handler ~@options)))

(defn server
  "Returns the web server instance associated with a particular set of

  (:require [immutant.internal.options :refer [boolify opts->set set-valid-options!
                                               validate-options extract-options]]
            [immutant.internal.util    :refer [kwargs-or-map->map]]
            [immutant.web.internal.wunderboss :as wboss]
            [immutant.web.undertow :as undertow])
  (:import [org.projectodd.wunderboss.web Web Web$CreateOption Web$RegisterOption]))

