protected boolean areLocalBucketQueueRegionsPresent() {
    for (PartitionedRegion prQ : userRegionNameToShadowPRMap.values()) {
      if (prQ.getDataStore().getAllLocalBucketRegions().size() > 0) {
        return true;
      }
    }
    return false;
  }
Take will choose a random BucketRegionQueue which is primary and will take the head element
from it.
geode-core/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderQueue.java