protected synchronized void setStackIndexes(final List<Integer> stackIndexes) {
    this.stackIndexes = new int[stackIndexes.size()];
    for (int i = 0; i < this.stackIndexes.length; ++i) {
      this.stackIndexes[i] = stackIndexes.get(i);
    }
    // for backward compatible, where a procedure is serialized before we added the executed flag,
    // the flag will be false so we need to set the wasExecuted flag here
    this.wasExecuted = true;
  }
Called on store load to initialize the Procedure internals after the creation/deserialization.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/Procedure.java