public static DistributedMember getLeadMember(DistributedSystem sys) {
    return getDistribution(sys).getView().getLeadMember();
  }
returns the current lead member address
geode-dunit/src/main/java/org/apache/geode/distributed/internal/membership/api/MembershipManagerHelper.java