public <T extends Procedure<TEnvironment>> T getProcedure(Class<T> clazz, long procId) {
    Procedure<TEnvironment> proc = getProcedure(procId);
    if (clazz.isInstance(proc)) {
      return clazz.cast(proc);
    }
    return null;
  }
Send an abort notification to the specified procedure. Depending on the procedure
implementation, the abort can be considered or ignored.
@param procId                the procedure to abort
@param mayInterruptIfRunning if the proc completed at least one step, should it be aborted?
@return true if the procedure exists and has received the abort, otherwise false.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/ProcedureExecutor.java