CNamedEntity *theEntity=(CNamedEntity*)anObject; delete theEntity;
nsIElementObserver* theObserver= (nsIElementObserver*)anObject; NS_RELEASE(theObserver);
  virtual void* operator()(void* anObject) {    CNamedEntity *theEntity=(CNamedEntity*)anObject;    delete theEntity;    return 0;  }