@VisibleForTesting protected State buildPatch(TaskState.TaskStage stage,TaskState.SubStage subStage){
  return buildPatch(stage,subStage,(Throwable)null);
}

@ VisibleForTesting protected State buildPatch ( TaskState . TaskStage stage , TaskState . SubStage subStage ) { return buildPatch ( stage , subStage , ( Throwable ) null ) ; }
this method builds a patch state object which can be used to submit a self - patch .
