docs: static List<String> nameSegments(ObjectName objectName) {
          List<String> segments = new ArrayList<>();
          segments.add(objectName.getDomain());
          for (String s : objectName.getKeyPropertyListString().split(",")) {
              int index = s.indexOf('=');
              if (index < 0) {
                  continue;
              }
              String key = objectName.getKeyProperty(s.substring(0, index));
              if (s.substring(0, index).equals("type")) {
                  segments.add(1, key);
              } else {
                  segments.add(key);
              }
          }
  
          return segments;
      }