HttpConnection connection = ( HttpConnection )i.next();
connection.close();
// remove the reference to the connection manager. this ensures
// that the we don't accidentally end up here again
connection.setHttpConnectionManager( null );
connection.releaseConnection();
}
}
/**
* Removes the reference being stored for the given connection. This method