context.authTokenCookie = new AuthToken(context.authAccount).getEncoded();
context.authTokenCookie = new AuthToken(context.authAccount, isAdminRequest(context)).getEncoded();
    private void proxyOnMountpoint(HttpServletRequest req, HttpServletResponse resp, Context context, Mountpoint mpt)    throws IOException, ServletException, ServiceException, UserServletException {        String uri = SERVLET_PATH + "/~/?" + QP_ID + '=' + mpt.getOwnerId() + "%3A" + mpt.getRemoteId();        if (context.format != null)            uri += '&' + QP_FMT + '=' + URLEncoder.encode(context.format, "UTF-8");        for (Map.Entry<String, String> entry : HttpUtil.getURIParams(req).entrySet()) {            String qp = entry.getKey();            if (!qp.equals(QP_ID) && !qp.equals(QP_FMT))                uri += '&' + URLEncoder.encode(qp, "UTF-8") + '=' + URLEncoder.encode(entry.getValue(), "UTF-8");        }        try {            if (context.basicAuthHappened && context.authTokenCookie == null)                 context.authTokenCookie = new AuthToken(context.authAccount).getEncoded();        } catch (AuthTokenException e) {            throw new UserServletException(HttpServletResponse.SC_BAD_REQUEST, "cannot generate auth token");        }        Provisioning prov = Provisioning.getInstance();        Account targetAccount = prov.get(AccountBy.id, mpt.getOwnerId());        if (targetAccount == null)            throw new UserServletException(HttpServletResponse.SC_BAD_REQUEST, "referenced account not found");        proxyServletRequest(req, resp, prov.getServer(targetAccount), uri,                    context.basicAuthHappened ? context.authTokenCookie : null);    }