Example Java client