String id = invoke(req).getElement(MailService.E_TAG).getAttribute(MailService.A_ID);  return getTagById(id);
Element createdTagEl = invoke(req).getElement(MailService.E_TAG); ZTag tag = getTagById(createdTagEl.getAttribute(MailService.A_ID)); return tag != null ? tag : new ZTag(createdTagEl);
    public ZTag createTag(String name, ZTag.Color color) throws ServiceException {        XMLElement req = new XMLElement(MailService.CREATE_TAG_REQUEST);        Element tagEl = req.addElement(MailService.E_TAG);        tagEl.addAttribute(MailService.A_NAME, name);        if (color != null) tagEl.addAttribute(MailService.A_COLOR, color.getValue());        String id = invoke(req).getElement(MailService.E_TAG).getAttribute(MailService.A_ID);        // this assumes notifications will create the tag        return getTagById(id);          }