Non-generic java client methods

Small correction for two methods that use generic calls even though non-generic calls are available.

Note: this pull request does *not* require a change to the pom.