private void storeProperties(Properties props) {
      
      if(useProxy_flag)
         props.setProperty(USE_PROXY, "true");
      else
         props.setProperty(USE_PROXY, "false");
      
      if(httpProxyHost != null)
         props.setProperty(HTTP_PROXY_HOST, httpProxyHost);
      if(httpProxyPort != -1) 
         props.setProperty(HTTP_PROXY_PORT, ""+httpProxyPort);
      
      if(!httpNonProxyHosts.isEmpty()) {
         Iterator it = httpNonProxyHosts.iterator();
         StringBuffer buf = new StringBuffer();
         while(it.hasNext()) {
            buf.append((String)it.next());
            buf.append("|");
         }
      }
      
      if(socksProxyHost != null) 
         props.setProperty(SOCKS_PROXY_HOST, socksProxyHost);
      if(socksProxyPort != -1) 
         props.setProperty(SOCKS_PROXY_PORT, ""+socksProxyPort);
      if(socksProxyUsername != null) 
         props.setProperty(SOCKS_USERNAME, socksProxyUsername);
      if(socksProxyPassword != null) 
         props.setProperty(SOCKS_PASSWORD, socksProxyPassword);
      
   }