private boolean findAndSetPrimaryMember() {
    if (isPrimary()) {
      setPrimaryMember(getDistributionManager().getDistributionManagerId());
      return true;
    }
    InternalDistributedMember[] primaryMembers = findPrimaryMembers();
    if (primaryMembers.length > 0) {
      setPrimaryMember(primaryMembers[0]);
      return true;
    } else {
      return false;
    }
  }
Searches through profiles to find first profile that is flagged as primary and sets
{@link #primaryMember} to it. Caller must synchronize on this BucketAdvisor.

@return true if a primary member was found and used
@see #findAndSetPrimaryMember()
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java