private void checkIsDestroyed() throws NamingException {
    if (isDestroyed) {
      throw new NoPermissionException(
          "Can not invoke operations on destroyed context!");
    }
  }
Checks if this context has been destroyed. isDestroyed is set to true when a context is
destroyed by calling destroySubcontext method.

@throws NoPermissionException if this context has been destroyed
geode-core/src/main/java/org/apache/geode/internal/jndi/ContextImpl.java