public synchronized void cancelMessage(InternalDistributedMember console, int msgId) {
    Key key = new Key(console, msgId);
    AdminRequest msg = (AdminRequest) map.get(key);
    if (msg instanceof Cancellable) {
      ((Cancellable) msg).cancel();
    }
  }
This class provides a way for a {@link CancellationMessage} to find its prey. An
{@link AdminRequest} that implements {@link Cancellable} should register with this class before
doing any work, and deregister just before returning it's response.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/CancellationRegistry.java