code: public Task pollTask(String taskType, String workerId, String domain) {
          Preconditions.checkArgument(StringUtils.isNotBlank(taskType), "Task type cannot be blank");
          Preconditions.checkArgument(StringUtils.isNotBlank(domain), "Domain cannot be blank");
          Preconditions.checkArgument(StringUtils.isNotBlank(workerId), "Worker id cannot be blank");
  
          Object[] params = new Object[]{"workerid", workerId, "domain", domain};
          Task task = getForEntity("tasks/poll/{taskType}", params, Task.class, taskType);
          populateTaskInput(task);
          return task;
      }
docs: Perform a poll for a task of a specific task type.
  
  @param taskType The taskType to poll for
  @param domain   The domain of the task type
  @param workerId Name of the client worker. Used for logging.
  @return Task waiting to be executed.