code: public Iterable<AgentTask> resetTaskList() {
  		final List<WeakReference<AgentTask>> old = this.tasks;
  		this.tasks = new ArrayList<>();
  		return getTaskList(old);
  	}
docs: Reset the task list.
  
  @return the old task list.