if (response.getStatus() != 200) {
LOGGER.debug("Failed : HTTP error code : " + response.getClientResponseStatus()
.getStatusCode()
+ " - "
+ response.getClientResponseStatus().getReasonPhrase());
throw new RequestException(response.getClientResponseStatus()
.getStatusCode()
+ " - "
+ response.getClientResponseStatus().getReasonPhrase());
}
return response.getEntity(c);