              fi.iki.elonen.NanoWSD$WebSocket
              java.util.UUID
              com.couchbase.lite.Manager
+             com.couchbase.lite.Mapper
              com.couchbase.lite.Document$DocumentUpdater
              com.couchbase.lite.android.AndroidContext
              com.couchbase.lite.util.Log

                      (log/i "calling setUserProperties")
                      (.setUserProperties new-revision 
                                          (assoc (into {}  properties) 
                                                 "hello" "using update" "itzik" "was here..."))
                      true
                          )))]
    updater
    )
  )
                    
;; --API-- ;;
(defprotocol I-HTTPD-WSD
  "HTTPD and WSD APIs"

    (log/i (str "new data after using putProperties: " (.getProperties document)))

    (log/i (str "deleting document: " (.delete document)))
    ;; this is how you get conflicts and revision histories
    ;; (.getCurrentRevision document)
    ;; (.getLeafRevisions document)
    ;; (.putProperties document (assoc (into {} data) "bizo" "is here"))
    ;; (.getProperties (.getDocument (first (.getConflictingRevisions document))))
    ;; (.getRevisionHistory document)
    ;; (def mapper (.getMap new-view))
    ;; (.map mapper {} nil)

    ;; starting servers
    (toast "starting HTTPD-WSD servers" :long)
    (start-servers httpd-wsd)
    (def route ["/index.html" :index])
    (log/i (bidi/match-route route "/index.html"))
