 (defn start
   "Launch application. Throw error if app-context is not initialized."
   []
+  (ensure-init)
   (util/expected map? "app-context to be initialized as map using inducer bract.core.dev/record-context!" app-context)
   (echo/with-latency-capture "Launching application"
     (-> (config/ctx-config app-context)

    (init))))


(defonce ^:redef app-context nil)


(defn record-context!

(defn stop
  "Stop the started application."
  []
  (ensure-init)
  (let [stopper (config/ctx-stopper app-context)]
    (echo/with-latency-capture "Stopping the started application"
      (stopper))))
