code: public Task getPendingTaskForWorkflow(String workflowId, String taskReferenceName) {
          Preconditions.checkArgument(StringUtils.isNotBlank(workflowId), "Workflow id cannot be blank");
          Preconditions.checkArgument(StringUtils.isNotBlank(taskReferenceName), "Task reference name cannot be blank");
  
          return getForEntity("tasks/in_progress/{workflowId}/{taskRefName}", null, Task.class, workflowId, taskReferenceName);
      }
docs: Retrieve pending task identified by reference name for a workflow
  
  @param workflowId        Workflow instance id
  @param taskReferenceName reference name of the task
  @return Returns the pending workflow task identified by the reference name