java: generate service client based on HttpClient