def removeNotificationTpl(self, tpl):
        try:
            if self._notifTpls:
                pass
        except AttributeError:
            self._notifTpls = IOBTree()
        try:
            if self._notifTplsOrder:
                pass
        except AttributeError:
            self._notifTplsOrder = PersistentList()
            for tpl in self._notifTpls.values():
                self._notifTplsOrder.append(tpl)
        if tpl.getOwner() != self or not self._notifTpls.has_key(int(tpl.getId())):
            return
        del self._notifTpls[int(tpl.getId())]
        self._notifTplsOrder.remove(tpl)
        tpl.includeInOwner(None, tpl.getId())  # We don't change the id for
                                               # recovery purposes.
        tpl.delete()