code: 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);
      }
docs: Straight conversion from an ObjectName to a PathAddress.
  
  There may not necessarily be a Resource at this path address (if that correspond to a pattern) but it must
  match a model in the registry.
  
  @param domain the name of the caller's JMX domain
  @param registry the root resource for the management model
  @param name the ObjectName to convert
  
  @return the PathAddress, or {@code null} if no address matches the object name