private void addSelectorForProtocol(Properties settings,String protocol,ProtocolDispatchSelector ps){
  String proxy=settings.getProperty(protocol);
  if (proxy != null) {
    FixedProxySelector protocolSelector=ProxyUtil.parseProxySettings(proxy);
    ps.setSelector(protocol,protocolSelector);
  }
}

private void addSelectorForProtocol ( Properties settings , String protocol , ProtocolDispatchSelector ps ) { String proxy = settings . getProperty ( protocol ) ; if ( proxy != null ) { FixedProxySelector protocolSelector = ProxyUtil . parseProxySettings ( proxy ) ; ps . setSelector ( protocol , protocolSelector ) ; } }
creates a selector for a given protocol . the proxy will be taken from the settings and installed on the dispatch selector .
