code: private QueryBuilder genericRequest(String type, String value) throws Exception {
          JSONObject op = new JSONObject();
          op.put(type, value);
          JSONArray operations = (JSONArray) request.get(Constants.REQUEST_OPERATIONS);
          operations.put(op);
          request.remove(Constants.REQUEST_OPERATIONS);
          request.put(Constants.REQUEST_OPERATIONS, operations);
          return this;
      }
docs: Creates a key value request
  @param type
  @param value
  @return
  @throws Exception