code: static PathAddress resolvePathAddress(final ObjectName domainRoot, final Resource rootResource, final ObjectName name) {
          String domain = domainRoot.getDomain();
          if (!name.getDomain().equals(domain)) {
              return null;
          }
          if (name.equals(domainRoot)) {
              return PathAddress.EMPTY_ADDRESS;
          }
          final Hashtable<String, String> properties = name.getKeyPropertyList();
          return searchPathAddress(PathAddress.EMPTY_ADDRESS, rootResource, properties);
      }
docs: Converts the ObjectName to a PathAddress.
  
  @param domainRoot the ObjectName used for mbean in the caller's JMX domain that represent the root management resource
  @param rootResource the root resource for the management model
  @param name the ObjectName to resolve
  
  @return the PathAddress if it exists in the model, {@code null} otherwise