Changes for clojure.reflect/resolve-class

weakreference on Wed, 24 Oct 2012
;;Check if class c exists on the classpath
(use '[clojure.reflect :only [resolve-class]])

(defn class-exists? [c] 
  (resolve-class (.getContextClassLoader (Thread/currentThread)) c))

user=> (class-exists? 'org.joda.time.DateTime) 
nil