code: function maybeProxy(jolokiaUrl, url) {
          if (jolokiaUrl && _.startsWith(jolokiaUrl, 'proxy/')) {
              log.debug("Jolokia URL is proxied, applying proxy to: ", url);
              return join('proxy', url);
          }
          var origin = window.location['origin'];
          if (url && (_.startsWith(url, 'http') && !_.startsWith(url, origin))) {
              log.debug("Url doesn't match page origin: ", origin, " applying proxy to: ", url);
              return join('proxy', url);
          }
          log.debug("No need to proxy: ", url);
          return url;
      }
docs: export var parseQueryString = hawtioPluginLoader.parseQueryString; 
  Apply a proxy to the supplied URL if the jolokiaUrl is using the proxy, or if the URL is for a a different host/port
  @param jolokiaUrl
  @param url
  @returns {*}