{
Iterator referenceIter = REFERENCE_TO_CONNECTION_SOURCE.keySet().iterator();
while( referenceIter.hasNext() )
{
Reference ref = ( Reference )referenceIter.next();
ConnectionSource source = ( ConnectionSource )REFERENCE_TO_CONNECTION_SOURCE.get( ref );
if( source.connectionPool == connectionPool )
{
referenceIter.remove();
HttpConnection connection = ( HttpConnection )ref.get();
if( connection != null )
{
connectionsToClose.add( connection );
}
}