if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
//success
try {
entity = response.getEntity();
String entityResponse = EntityUtils.toString(entity);
entity.consumeContent();
if (!db.equals(JSONDataBinding.NAME)) {
JSONObject jsonResponse = new JSONObject(entityResponse);
if (!jsonResponse.has("result")) {
processException(jsonResponse);