   overridden (in part or in whole) with the optional parameter
   `type-mapping`, which should contain a transformation function keyed
   by an XCC type string. See `types` above."
-  [result-sequence & [type-mapping]] 
+  [result-sequence & [type-mapping]]
   ;; TODO throw informative exception if type not found in types
   (let [result (map (fn [item] (((merge types
                                        (when (map? type-mapping)

   :graph (.getGraph opts)
   :language (.getLanguage opts)
   :namespace (.getNamespace opts)
   :permissions (map #(hash-map (.getRole %) (.toString (.getCapability %))) (.getPermissions opts)) 
   :quality (.getQuality opts)
   :repair-level ((clojure.set/map-invert repair-level) (.getRepairLevel opts))
   :resolve-buffer-size (.getResolveBufferSize opts)

  type conversion in `types`."
  ([session query]
   (execute-xquery session query {}))
  ([session query {:keys [options variables types]}]
   (submit-request (.newAdhocQuery session query) session query options variables types)))

(defn execute-module
