   (if (instance? RepositoryConnection repo)
     repo
     (let [c (.getConnection repo)]
-      (.setAutoCommit c false)
       c)))
 
 (defn prepare-query

(extend-protocol pr/ITransactable
  Repository
  (begin [repo]
    (-> repo .getConnection .begin))

  (commit [repo]
    (-> repo .getConnection .commit))


  RepositoryConnection
  (begin [repo]
    (-> repo (.setAutoCommit false)))

  (commit [repo]
    (-> repo .commit))
