protected boolean isTableEnabled(MasterProcedureEnv env) {
    return env.getMasterServices().getTableStateManager().isTableState(getTableName(),
      TableState.State.ENABLED);
  }
Check that cluster is up and master is running. Check table is modifiable. If
<code>enabled</code>, check table is enabled else check it is disabled. Call in Procedure
constructor so can pass any exception to caller.
@param enabled If true, check table is enabled and throw exception if not. If false, do the
               inverse. If null, do no table checks.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/AbstractStateMachineTableProcedure.java