code: public void record(String line, DispatchCallback callback) {
      if (sqlLine.getRecordOutputFile() == null) {
        startRecording(line, callback);
      } else {
        stopRecording(line, callback);
      }
    }
docs: Starts or stops saving all output to a file.
  
  @param line Command line
  @param callback Callback for command status