return;
	public void createItem(DavContext ctxt, String user, String name) throws DavException, IOException {		Provisioning prov = Provisioning.getInstance();		Mailbox mbox = null;		try {			Account account = prov.get(AccountBy.name, user);			if (account == null)				throw new DavException("no such account "+user, HttpServletResponse.SC_NOT_FOUND, null);			mbox = MailboxManager.getInstance().getMailboxByAccount(account);		} catch (ServiceException e) {			throw new DavException("cannot get mailbox", HttpServletResponse.SC_INTERNAL_SERVER_ERROR, null);		}		String author = ctxt.getAuthAccount().getName();		String ctype = ctxt.getRequest().getContentType();		int clen = ctxt.getRequest().getContentLength();		byte[] data = ByteUtil.getContent(ctxt.getRequest().getInputStream(), clen);		if (ctype == null)			ctype = URLConnection.getFileNameMap().getContentTypeFor(name);		if (ctype == null)			ctype = DavProtocol.DEFAULT_CONTENT_TYPE;		try {			// add a revision if the resource already exists			MailItem item = mbox.getItemByPath(ctxt.getOperationContext(), ctxt.getPath(), 0, false);			if (item.getType() != MailItem.TYPE_DOCUMENT && item.getType() != MailItem.TYPE_WIKI)				throw new DavException("no DAV resource for "+MailItem.getNameForType(item.getType()), HttpServletResponse.SC_NOT_ACCEPTABLE, null);			mbox.addDocumentRevision(ctxt.getOperationContext(), (Document)item, data, author);			ctxt.setStatus(HttpServletResponse.SC_OK);		} catch (ServiceException e) {			if (!(e instanceof NoSuchItemException))				throw new DavException("cannot get item ", HttpServletResponse.SC_INTERNAL_SERVER_ERROR, null);		}				// create		try {			mbox.createDocument(ctxt.getOperationContext(), mId, name, ctype, author, data, null);			ctxt.setStatus(HttpServletResponse.SC_CREATED);		} catch (ServiceException se) {			throw new DavException("cannot create ", HttpServletResponse.SC_INTERNAL_SERVER_ERROR, se);		}	}