code: function (url) {
          // url must be either string or an instance of url.
          if (!_.isString(url) && !Url.isUrl(url)) {
              return;
          }
  
          // @todo - use a fixed-length cacheing of regexes in future
          return this.find(function (proxyConfig) {
              return !proxyConfig.disabled && proxyConfig.test(url);
          });
  
      }
docs: Matches and gets the proxy config for the particular url.
  
  @returns {ProxyConfig~definition} The matched proxyConfig object
  @param {URL=} [url] The url for which the proxy config needs to be fetched