code: @Override
    public Map<JobId, Task> getTasks() {
      final Map<JobId, Task> tasks = Maps.newHashMap();
      for (final Map.Entry<String, Task> entry : this.tasks.getNodes().entrySet()) {
        final JobId id = jobIdFromTaskPath(entry.getKey());
        tasks.put(id, entry.getValue());
      }
      return tasks;
    }
docs: Returns the tasks (basically, a pair of {@link JobId} and {@link Task}) for the current agent.