inlineNocacheJs(), channelApiUrl);
}
private void writeStaticClientResponse(HttpServletRequest req, HttpServletResponse resp,
LoadedWave wave) throws IOException {
StaticClientVarsGsonImpl vars = new StaticClientVarsGsonImpl();
vars.setRandomSeed(random.nextInt());
vars.setUserEmail(participantId.getAddress());
vars.setHaveOauthToken(userContext.hasOAuthCredentials());
vars.setConvObjectId(wave.getConvObjectId().getId());
vars.setConvSnapshot(wave.getConvSnapshotWithDiffs());
setResponseHeaders(resp);
Wave.write(resp.getWriter(), new GxpContext(getLocale(req)),
analyticsAccount, clientVarString(null, vars, null), true,
inlineNocacheJs(), channelApiUrl);
}