         (run-tests-with-format test-name-pattern)))
     (run-tests-with-format test-name-pattern)))
 
-(defn ensure-dynamic-classloader
-  []
-  (let [thread (Thread/currentThread)
-        cl (.getContextClassLoader thread)]
-    (when-not (instance? DynamicClassLoader cl)
-      (.bindRoot clojure.lang.Compiler/LOADER cl)
-      (.setContextClassLoader thread (DynamicClassLoader. cl)))))
-
 (defn run-app!
   "Start Riemann with the given setup function. The setup function is responsible
   for executing code that you would normally put into your riemann.config file,

        (error e "Couldn't reload:")
        e))))

(defn handle-signals
  "Sets up POSIX signal handlers."
  []

     (proxy [sun.misc.SignalHandler] []
       (handle [sig]
         (info "Caught SIGHUP, reloading")
         (ensure-dynamic-classloader)
         (add-config-dir-to-classpath @config-file)
         (reload!))))))

(defn pom-version
