// Google account for contact information and to import waves from; but it
// is confusing, so we should disable it.)
userContext.setOAuthCredentials(credentials);
userContext.setOAuthProvider(oAuthProviders.get(split[0]));
Record userInfo = userContext.getOAuthProvider().getUserInfo();
userContext.setUserId(userInfo.getUserId());
userContext.setParticipantId(userInfo.getParticipantId());
log.info("User context: " + userContext);
writeAccountRecordFromContext();
authorizedCodes.put(split[1], userInfo.getUserId(), Expiration.byDeltaSeconds(30),
SetPolicy.ADD_ONLY_IF_NOT_PRESENT);
resp.setContentType("text/html");
resp.setCharacterEncoding("UTF-8");
Cookie uid = new Cookie(TokenBasedAccountLookup.USER_ID_KEY, userContext.getUserId().getId());