provide client example in java, groovy