if (_subResourcePath != null) {
uriBuilder = UriBuilder.fromUri(String.format(_subResourcePath, args));
}
ClientRequest request = new ClientRequest(uriBuilder, _executor, _providerFactory);
if (_accepts != null) {
request.header(HttpHeaders.ACCEPT, _accepts.toString());
}
for (Map.Entry<String, List<String>> entry : headers.entrySet()) {
String name = entry.getKey();
List<String> values = entry.getValue();
for (String value : values) {