Updated code to use least privilge for operations
Merge branch 'newRegressionTests' of https://github.com/marklogic/java-client-api into newRegressionTests