Wrap some java calls into clojure function wrappers.