private String getNameOrId(DistributedMember member) {
    if (member == null) {
      return memberSource;
    }
    return isNotBlank(member.getName()) ? member.getName() : member.getId();
  }
Assumption is its a cache server instance. For Gateway receiver there will be a separate method
geode-core/src/main/java/org/apache/geode/management/internal/beans/ManagementAdapter.java