throws IOException, ServletException {
if (Timing.isEnabled()) {
Timing.enterScope();
final HttpSession session = ((HttpServletRequest)request).getSession();
final ParticipantId loggedInUser = (ParticipantId)session.getAttribute(SessionManager.USER_FIELD);
Timing.setScopeValue(SessionContext.class, new SessionContext() {
@Override
public boolean isAuthenticated() {
return session != null;
}