code: static Proxy parseProxySettings(String spec) {
  
          try {
              if (spec == null || spec.length() == 0) {
                  return null;
              }
              return new Proxy(spec);
          } catch (URISyntaxException e) {
              return null;
          }
      }
docs: Parse proxy specification and return a proxy object representing the proxy configuration.
  @param spec specification of for a proxy
  @return proxy object or null if none is set