aImapUrl(do_QueryInterface(m_urlQueue->ElementAt(0)));
aImapUrl(do_QueryInterface(aSupport, &rv));
nsImapIncomingServer::LoadNextQueuedUrl(){    PRUint32 cnt = 0;    nsresult rv = NS_OK;    PR_CEnterMonitor(this);    m_urlQueue->Count(&cnt);    if (cnt > 0)    {        nsCOMPtr<nsIImapUrl>            aImapUrl(do_QueryInterface(m_urlQueue->ElementAt(0)));        if (aImapUrl)        {            nsISupports *aConsumer =                (nsISupports*)m_urlConsumers.ElementAt(0);            NS_IF_ADDREF(aConsumer);                        nsIImapProtocol * protocolInstance = nsnull;            rv = CreateImapConnection(nsnull, aImapUrl,                                               &protocolInstance);            if (NS_SUCCEEDED(rv) && protocolInstance)            {                rv = protocolInstance->LoadUrl(aImapUrl, aConsumer);                m_urlQueue->RemoveElementAt(0);                m_urlConsumers.RemoveElementAt(0);            }            NS_IF_RELEASE(aConsumer);        }    }    PR_CExitMonitor(this);    return rv;}