public static void withMeta(Response resp, JSONObject rootJsonObj) {
    try {
      resp.version = String.valueOf(rootJsonObj.get(Constants.VERSION));
      resp.status = rootJsonObj.getString(Constants.STATUS);
      if(rootJsonObj.has(Constants.RESPONSE)) {
        JSONObject respJson = rootJsonObj.getJSONObject(Constants.RESPONSE);
        if(respJson.has(Constants.TOTAL_ROW_COUNT)) {
          resp.totalRowCount = respJson.getInt(Constants.TOTAL_ROW_COUNT);
        }
        if(respJson.has(Constants.INCLUDED_ROWS)) {
          resp.includedRows = respJson.getInt(Constants.INCLUDED_ROWS);
        }
      }
    } catch (JSONException e) {
      throw new RuntimeException(e);
    }
  }