<BUG>private void runSmartQuery(JSONArray args, CallbackContext callbackContext) throws JSONException {JSONObject arg0 = args.getJSONObject(0);</BUG><CONTEXT>if (querySpec.queryType == QueryType.smart) {throw new RuntimeException("Smart queries can only be run through runSmartQuery");}runQuery(smartStore, querySpec, callbackContext);}<extra_id_0>JSONObject querySpecJson = arg0.getJSONObject(QUERY_SPEC);final SmartStore smartStore = getSmartStore(arg0);QuerySpec querySpec = QuerySpec.fromJSON(null, querySpecJson);</CONTEXT>
private void runSmartQuery(JSONArray args, CallbackContext callbackContext) throws Exception {JSONObject arg0 = args.getJSONObject(0);