question: 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 ) ; } }
target:  Creates a selector for a given protocol. The proxy will be taken from the settings and installed on the dispatch selector.