Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru);
  void release()  {    if (pool != null)      {        synchronized (pool)          {            useCount++;            Object key = HTTPConnection.getPoolKey(hostname, port, secure);            pool.put(key, this);            while (pool.size() >= HTTPURLConnection.maxConnections)              {                // maxConnections must always be >= 1                Object lru = pool.keySet().iterator().next();                HTTPConnection c = (HTTPConnection)pool.remove(lru);                try                  {                    c.closeConnection();                  }                catch (IOException ioe)                  {                      // Ignore it.  We are just cleaning up.                  }              }          }      }  }