public void changeTaskOutputContext(Task task) {
   this.cancelCurrentRequests();
   if (task == null) {
     this.changeCurrentOutput(null, false);
   } else {
     String jobId = Long.toString(task.getJobId());
     this.changeCurrentOutput(jobId, false);
   }
   this.model.setLiveEnabled(false, false);
   this.model.setLive(false, false);
 }