String ids = deleted.getAttribute(MailService.A_ID, null); if (ids == null) return; for (String id : ids.split(",")) { ZSoapItem item = mIdToItem.get(id); if (item instanceof ZSoapFolder) { ZSoapFolder sf = (ZSoapFolder) item; if (sf.getParent() != null) ((ZSoapFolder)sf.getParent()).removeChild(sf); } else if (item instanceof ZSoapLink) { ZSoapLink sl = (ZSoapLink) item; if (sl.getParent() != null) ((ZSoapFolder)sl.getParent()).removeChild(sl); } else if (item instanceof ZSoapSearchFolder) { ZSoapSearchFolder sf = (ZSoapSearchFolder) item; if (sf.getParent() != null) ((ZSoapFolder)sf.getParent()).removeChild(sf);  } if (item != null) mIdToItem.remove(item.getId()); }
    private void handleDeleted(Element deleted) {        if (deleted == null) return;        // TODO    }