docs: static PathAddress toPathAddress(String domain, ImmutableManagementResourceRegistration registry, ObjectName name) {
          if (!name.getDomain().equals(domain)) {
              return PathAddress.EMPTY_ADDRESS;
          }
          if (name.equals(ModelControllerMBeanHelper.createRootObjectName(domain))) {
              return PathAddress.EMPTY_ADDRESS;
          }
          final Hashtable<String, String> properties = name.getKeyPropertyList();
          return searchPathAddress(PathAddress.EMPTY_ADDRESS, registry, properties);
      }