Java Client Example