return URLUtil.getMailURL(s, path.toString(), preferHttps);
return URLUtil.getMailURL(s, path.toString(), true);
    public static String getRestUrl(Account acct, boolean preferHttps) throws ServiceException {        Server s = Provisioning.getInstance().getServer(acct);        StringBuilder path = new StringBuilder();        path.append(UserServlet.SERVLET_PATH).append("/").append(acct.getUid());        return URLUtil.getMailURL(s, path.toString(), preferHttps);    }