boolean processRegionQueue(Iterator iterator, String regionName, int size,
      HARegionQueue hrq) {
    // we have to iterate even if the hrq isn't available since there are
    // a bunch of event IDs to go through
    for (int i = 0; i < size; i++) {
      final EventID id = (EventID) iterator.next();
      if (hrq == null || !hrq.isQueueInitialized()) {
        if (logger.isDebugEnabled()) {
          logger.debug("QueueRemovalMessage: hrq is not ready when trying to remove "
              + "dispatched event on queue {} for {}", regionName, id);
        }
        continue;
      }

      if (!removeQueueEvent(regionName, hrq, id)) {
        return false;
      }
    }
    return true;
  }
Extracts the region from the message list and hands over the message removal task to the
executor
geode-core/src/main/java/org/apache/geode/internal/cache/ha/QueueRemovalMessage.java