return toResponseBuilder(status.getStatusCode());
}
public static ResponseBuilder fromResponse(Response response) {
ResponseBuilder rb = toResponseBuilder(response.getStatus());
rb.entity(response.getEntity());
for (Map.Entry<String, List<Object>> entry : response.getMetadata().entrySet()) {
List<Object> values = entry.getValue();
for (Object value : values) {
rb.header(entry.getKey(), value);
}