public static String getMemberNameOrUniqueId(DistributedMember member) {
    if (member.getName() != null && !member.getName().equals("")) {
      return makeCompliantName(member.getName());
    }
    return makeCompliantName(member.getUniqueId());
  }
This method returns the name that will be used for a DistributedMember when it is registered as
a JMX bean.

@param member Member to find the name for
@return The name used to register this member as a JMX bean.
geode-core/src/main/java/org/apache/geode/management/internal/MBeanJMXAdapter.java