code: @Override
    public Map<JobId, TaskStatus> getTaskStatuses() {
      final Map<JobId, TaskStatus> statuses = Maps.newHashMap();
      for (final Map.Entry<String, byte[]> entry : this.taskStatuses.entrySet()) {
        try {
          final JobId id = JobId.fromString(entry.getKey());
          final TaskStatus status = Json.read(entry.getValue(), TaskStatus.class);
          statuses.put(id, status);
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return statuses;
    }
docs: Returns the {@link TaskStatus}es for all tasks assigned to the current agent.