                                                   (.readUTF data-input))]
                      (clojure.lang.ExceptionInfo. str ex cause)))
 
-(defrecord NippyOpts [v1-compatibility? compressor encryptor password no-header?])
-
 (def messaging-compress-opts 
-  (map->NippyOpts {:v1-compatibility? false 
-                   :compressor nil
-                   :encryptor nil
-                   :password nil
-                   :no-header? true}))
+  {:v1-compatibility? false 
+   :compressor nil
+   :encryptor nil
+   :password nil
+   :no-header? true})
 
 (defn messaging-compress [x]
   (nippy/freeze x messaging-compress-opts))

(defn zookeeper-compress [x]
  (nippy/freeze x zookeeper-compress-opts))

(def zookeeper-decompress-opts (map->NippyOpts {:v1-compatibility? false}))

(defn zookeeper-decompress [x]
  (nippy/thaw x zookeeper-decompress-opts))

(defn window-log-compress [x]
  (nippy/freeze x {}))

(def window-log-decompress-opts {:v1-compatibility? false})

(defn window-log-decompress [x]
  (nippy/thaw x window-log-decompress-opts))

(def localdb-compress-opts 
  {:v1-compatibility? false :compressor nil :encryptor nil :password nil})

(defn localdb-compress [x]
  (nippy/freeze x localdb-compress-opts))

(def local-db-decompress-opts 
  {:v1-compatibility? false :compressor nil :encryptor nil :password nil})

(defn localdb-decompress [x]
  (nippy/thaw x local-db-decompress-opts))
