private State buildPatch(final TaskState.TaskStage stage,final TaskState.SubStage subSatge,final Throwable e){
  State s=new State();
  s.taskInfo=new TaskState();
  s.taskInfo.stage=stage;
  s.taskInfo.subStage=subSatge;
  if (e != null) {
    s.taskInfo.failure=Utils.toServiceErrorResponse(e);
  }
  return s;
}

private State buildPatch ( final TaskState . TaskStage stage , final TaskState . SubStage subSatge , final Throwable e ) { State s = new State ( ) ; s . taskInfo = new TaskState ( ) ; s . taskInfo . stage = stage ; s . taskInfo . subStage = subSatge ; if ( e != null ) { s . taskInfo . failure = Utils . toServiceErrorResponse ( e ) ; } return s ; }
build a state object that can be used to submit a stage progress self patch .
