                                  (keyword (.toString (.getCapability %))))
                       (.getPermissions opts))
    :quality (.getQuality opts)
-   :repair-level ((clojure.set/map-invert repair-level) (.getRepairLevel opts))
+   :repair-level ((clojure.set/map-invert doc-repair-level) (.getRepairLevel opts))
    :resolve-buffer-size (.getResolveBufferSize opts)
    :resolve-entities (.getResolveEntities opts)
    :temporal-collection (.getTemporalCollection opts)})

            DocumentFormat DocumentRepairLevel
            ValueFactory]
           [com.marklogic.xcc.types ValueType]
           java.net.URI))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Type conversion

    :resolve-entities
    :temporal-collection})

(defn content-creation-options
  "Creates a ContentCreateOptions object (to pass to a ContentFactory
  newContent call) out of the given options map. See
