private void assertInitializing() {
    if (state != INITIALIZING) {
      String stateDesc = stateToString(state);
      throw new IllegalStateException(
          String.format("DLockGrantor operation only allowed when initializing, not %s",
              stateDesc));
    }
  }
Throws IllegalStateException if this grantor is not still initializing.

@throws IllegalStateException if this grantor is not still initializing
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java