return callAndParse(client.newRequest(uri).setAccept("application/json").get(), parser);
}
protected final <I, T> Promise<T> postAndParse(final URI uri, I entity, final JsonGenerator<I> jsonGenerator,
final JsonObjectParser<T> parser) {
final ResponsePromise responsePromise = client.newRequest(uri)
.setEntity(toEntity(jsonGenerator, entity))
.post();
return callAndParse(responsePromise, parser);
}