Account target = null; String ownerId = t.getAttribute(MailService.A_ZIMBRA_ID, null); if (ownerId == null) { String ownerName = t.getAttribute(MailService.A_DISPLAY, null); target = Provisioning.getInstance().get(AccountBy.name, ownerName); if (target == null) throw AccountServiceException.NO_SUCH_ACCOUNT(ownerName); ownerId = target.getId(); }  int remoteId  = (int) t.getAttributeLong(MailService.A_REMOTE_ID, -1); if (remoteId == -1) { String remotePath = t.getAttribute(MailService.A_PATH); remoteId = resolveRemotePath(lc, context, ownerId, remotePath).getId(); if (remoteId == -1) throw MailServiceException.NO_SUCH_FOLDER(remotePath); }
    public Element handle(Element request, Map<String, Object> context) throws ServiceException {        ZimbraSoapContext lc = getZimbraSoapContext(context);        Mailbox mbox = getRequestedMailbox(lc);        Mailbox.OperationContext octxt = lc.getOperationContext();        Session session = getSession(context);        Element t = request.getElement(MailService.E_MOUNT);        String name      = t.getAttribute(MailService.A_NAME);        String ownerId   = t.getAttribute(MailService.A_ZIMBRA_ID);        int    remoteId  = (int) t.getAttributeLong(MailService.A_REMOTE_ID);        String view      = t.getAttribute(MailService.A_DEFAULT_VIEW, null);        ItemId iidParent = new ItemId(t.getAttribute(MailService.A_FOLDER), lc);        boolean fetchIfExists = t.getAttributeBool(MailService.A_FETCH_IF_EXISTS, false);                CreateMountpointOperation op = new CreateMountpointOperation(session, octxt, mbox, Requester.SOAP,        			iidParent, name, ownerId, remoteId, view, fetchIfExists);        op.schedule();        Mountpoint mpt = op.getMountpoint();                Element response = lc.createElement(MailService.CREATE_MOUNTPOINT_RESPONSE);        if (mpt != null)            ToXML.encodeMountpoint(response, lc, mpt);        return response;    }