docs: static ObjectName createObjectName(final String domain, final PathAddress pathAddress, ObjectNameCreationContext context) {
  
          if (pathAddress.size() == 0) {
              return ModelControllerMBeanHelper.createRootObjectName(domain);
          }
          final StringBuilder sb = new StringBuilder(domain);
          sb.append(":");
          boolean first = true;
          for (PathElement element : pathAddress) {
              if (first) {
                  first = false;
              } else {
                  sb.append(",");
              }
              escapeKey(ESCAPED_KEY_CHARACTERS, sb, element.getKey(), context);
              sb.append("=");
              escapeValue(sb, element.getValue(), context);
          }
          try {
              return ObjectName.getInstance(sb.toString());
          } catch (MalformedObjectNameException e) {
              throw JmxLogger.ROOT_LOGGER.cannotCreateObjectName(e, pathAddress, sb.toString());
          }
      }