@Override
  public void fillInProfile(Profile profile) {
    super.fillInProfile(profile);
    HARegionAdvisor.HAProfile h = (HARegionAdvisor.HAProfile) profile;
    // dunit tests create HARegions without encapsulating them in queues
    if (owningQueue != null) {
      h.isPrimary = owningQueue.isPrimary();
      h.hasRegisteredInterest = owningQueue.getHasRegisteredInterest();
    }
  }
invoked when we finish providing a GII image
geode-core/src/main/java/org/apache/geode/internal/cache/HARegion.java