code: private TagList createTagList(ObjectName name) {
      Map<String, String> props = name.getKeyPropertyList();
      SmallTagMap.Builder tagsBuilder = SmallTagMap.builder();
      for (Map.Entry<String, String> e : props.entrySet()) {
        String key = PROP_KEY_PREFIX + "." + e.getKey();
        tagsBuilder.add(Tags.newTag(key, e.getValue()));
      }
      tagsBuilder.add(Tags.newTag(DOMAIN_KEY, name.getDomain()));
      tagsBuilder.add(CLASS_TAG);
      if (defaultTags != null) {
        defaultTags.forEach(tagsBuilder::add);
      }
      return new BasicTagList(tagsBuilder.result());
    }
docs: Creates a tag list from an object name.