public JSONArray getArray(String url) throws RESTException { StatusCode errorStatus = StatusCode.FAILED_CONNECTION; try { return new JSONArray(baseGet(url)); } catch (RESTException e) { errorStatus = e.getStatusCode(); throw new RESTException(e.getMessage(), errorStatus); } catch (JSONException e) { throw new RESTException(e.getMessage(), errorStatus); } }