Non-generic java client methods

Small correction for two methods that use generic calls even though non-generic calls are available.