String id = invoke(req).getElement(MailService.E_MOUNT).getAttribute(MailService.A_ID); return getMountpointById(id);
Element newMountEl = invoke(req).getElement(MailService.E_MOUNT); ZMountpoint newMount = getMountpointById(newMountEl.getAttribute(MailService.A_ID)); return newMount != null ? newMount : new ZMountpoint(newMountEl, null);
    public ZMountpoint createMountpoint(String parentId, String name,             ZFolder.View defaultView, ZFolder.Color color, String flags,             OwnerBy ownerBy, String owner, SharedItemBy itemBy, String sharedItem) throws ServiceException {        XMLElement req = new XMLElement(MailService.CREATE_MOUNTPOINT_REQUEST);        Element linkEl = req.addElement(MailService.E_MOUNT);        linkEl.addAttribute(MailService.A_NAME, name);        linkEl.addAttribute(MailService.A_FOLDER, parentId);        if (defaultView != null) linkEl.addAttribute(MailService.A_DEFAULT_VIEW, defaultView.name());        if (color != null) linkEl.addAttribute(MailService.A_COLOR, color.getValue());        if (flags != null) linkEl.addAttribute(MailService.A_FLAGS, flags);        linkEl.addAttribute(ownerBy == OwnerBy.BY_ID ? MailService.A_ZIMBRA_ID : MailService.A_OWNER_NAME, owner);        linkEl.addAttribute(itemBy == SharedItemBy.BY_ID ? MailService.A_REMOTE_ID: MailService.A_PATH, sharedItem);        String id = invoke(req).getElement(MailService.E_MOUNT).getAttribute(MailService.A_ID);        return getMountpointById(id);    }