public void run()   
    {   
        try   
        {   
            while(true)   
            {   
                synchronized(this)   
                {   
                    while(availableConnections.size() > initialConnectionCount)   
                    {   
                        Connection c = (Connection)availableConnections.lastElement();   
                        availableConnections.removeElement(c);   
                           
                        c.close();   
                    }   
                       
                }   
                   
                System.out.println("CLEANUP : Available Connections : " + availableCount());   
                   
                // Sleep for 1 minute   
                Thread.sleep(60000 * 1);   
            }       
        }   
        catch(Exception sqle)   
        {   
            sqle.printStackTrace();   
        }   
    }