public static void onLoad(PageContext pageContext) {
Injector injector =
(Injector)pageContext.getServletContext().getAttribute(
Injector.class.getName());
AuthBootstrapper authBootstrapper = injector.getInstance(
AuthBootstrapper.class);
CompleteAuthState authState = authBootstrapper.bootstrap();
try {
pageContext.getOut().write(String.format(
"<script language='javascript' type='text/javascript'>" +
"var ___authState___=\"%s\";" +