code: public TaskPublisher getTaskPublisher(TaskState taskState, TaskLevelPolicyCheckResults results) throws Exception {
      return TaskPublisherBuilderFactory.newTaskPublisherBuilder(taskState, results).build();
    }
docs: Get a post-fork {@link TaskPublisher} for publishing data in the given branch.
  
  @param taskState {@link TaskState} of a {@link Task}
  @param results Task-level policy checking results
  @return a {@link TaskPublisher}