code: public static void setTaskFactoryClass(State state, Class<? extends TaskFactory> klazz) {
      state.setProp(TASK_FACTORY_CLASS, klazz.getName());
    }
docs: Define the {@link TaskFactory} that should be used to run this task.