DateImpl* result = new DateImpl(time);
PLDHashEntryHdr *hdr = PL_DHashTableOperate(&mDates, &aTime, PL_DHASH_LOOKUP);  if (PL_DHASH_ENTRY_IS_BUSY(hdr)) { DateHashEntry *entry = NS_STATIC_CAST(DateHashEntry *, hdr); NS_ADDREF(*aResult = entry->mDate); return NS_OK; }  DateImpl* result = new DateImpl(aTime);
RDFServiceImpl::GetDateLiteral(PRTime time, nsIRDFDate** literal){    // XXX how do we cache these? should they live in their own hashtable?    DateImpl* result = new DateImpl(time);    if (! result)        return NS_ERROR_OUT_OF_MEMORY;    *literal = result;    NS_ADDREF(result);    return NS_OK;}