String url = UserServlet.getRestUrl(account, true);
String url = UserServlet.getRestUrl(account);
	public static Element encodeRestUrl(Element m, MailItem item) {		try {			Account account = item.getMailbox().getAccount();			String url = UserServlet.getRestUrl(account, true);			if (url.startsWith("https"))				url = new HttpsURL(url + item.getPath()).toString();			else				url = new HttpURL(url + item.getPath()).toString();			return m.addAttribute(MailService.A_REST_URL, url);		} catch (ServiceException se) {			mLog.error("cannot generate REST url", se);			return m;		} catch (IOException ioe) {			mLog.error("cannot generate REST url", ioe);			return m;		}	}