Fix for https://github.com/marklogic/java-client-api/issues/179. We may
want to look at interface changes after EA3