try { Provisioning prov = Provisioning.getInstance(); Account account = prov.get(AccountBy.name, ctxt.getUser()); if (account == null) throw new DavException("no such account "+ctxt.getUser(), HttpServletResponse.SC_NOT_FOUND, null);  Mailbox mbox = MailboxManager.getInstance().getMailboxByAccount(account); mbox.createFolder(ctxt.getOperationContext(), name, mId, mView, 0, (byte)0, null); } catch (ServiceException e) { throw new DavException("item already exists", HttpServletResponse.SC_CONFLICT, e); }
mkCol(ctxt, name, mView);
	public void mkCol(DavContext ctxt, String name) throws DavException {		try {			Provisioning prov = Provisioning.getInstance();			Account account = prov.get(AccountBy.name, ctxt.getUser());			if (account == null)				throw new DavException("no such account "+ctxt.getUser(), HttpServletResponse.SC_NOT_FOUND, null);			Mailbox mbox = MailboxManager.getInstance().getMailboxByAccount(account);			mbox.createFolder(ctxt.getOperationContext(), name, mId, mView, 0, (byte)0, null);		} catch (ServiceException e) {			throw new DavException("item already exists", HttpServletResponse.SC_CONFLICT, e);		}	}