code: private Pattern makePattern(String noProxy) {
          String regex = noProxy.replaceAll("\\.", "\\\\.").replaceAll("\\*", ".*");
          if (!regex.startsWith(".*")) {
              regex = ".*" + regex;
          }
          regex = "^" + regex + "$";
          return Pattern.compile(regex);
      }
docs: Creates a regexp pattern equivalent to the classic noProxy wildcard expression.
  
  @param noProxy the noProxy expression.
  @return the regexp pattern.