private URI resolve(UriInfo uri, String clusterName) {
    try {
      return uri.resolve(config(clusterName));
    } catch (AmbariException e) {
      throw new RuntimeException(e);
    }
  }
A special {@link JMXHostProvider} that resolves JMX URIs based on cluster configuration.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ConfigBasedJmxHostProvider.java