public int getCurrentStateId() {
    return getStateId(getCurrentState());
  }
This method is used from test code as it cannot be assumed that state transition will happen
sequentially. Some procedures may skip steps/ states, some may add intermediate steps in
future.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/StateMachineProcedure.java