 (ns forumdb.core
-  (:import [org.hypergraphdb HGEnvironment HGHandle HGPlainLink HGQuery$hg HGQuery HGValueLink]
+  (:import [org.hypergraphdb HGEnvironment HGHandle HGPlainLink HGQuery$hg HGQuery HGValueLink HGConfiguration]
            (java.util Locale TimeZone)
            (java.text SimpleDateFormat)
            (java.io File)

    (def topType (. (. @database getTypeSystem) getTop))
    (def userThreadRelType (HGQuery$hg/assertAtom @database (HGRelType. "user-thread" (into-array HGHandle [topType topType]))))
    ;(def userPostRelType (HGQuery$hg/assertAtom @database (HGRelType. "user-post" (into-array HGHandle [topType topType]))))

    (if (= database-exists 0)
      (do

           (org.joda.time DateTime)
           (org.hypergraphdb.atom HGRel HGRelType)
           (org.hypergraphdb.query HGQueryCondition AtomPartRegExPredicate)
           (java.util.regex Pattern)
           (org.hypergraphdb.indexing ByPartIndexer)
           (org.hypergraphdb.handle SequentialUUIDHandleFactory))
  (:require [clojure.string :as string]
            [clojure.xml :as xml]
            [clj-time.format :as f]
