public HARegionQueue getOwnerWithWait(long timeout) {
    if (owningQueue.isQueueInitializedWithWait(timeout)) {
      return owningQueue;
    } else {
      if (logger.isDebugEnabled()) {
        logger.debug("After waiting for {} seconds, queue is still not initialized",
            TimeUnit.MILLISECONDS.toSeconds(timeout));
      }
      return null;
    }
  }
Returns an instance of HARegion after it has properly initialized

@param regionName name of the region to be created
@param cache the cache that owns this region
@param ra attributes of the region
@return an instance of an HARegion
@throws RegionExistsException if a region of the same name exists in the same Cache
geode-core/src/main/java/org/apache/geode/internal/cache/HARegion.java