c.setCurrentUser(e);
Authenticate.loggedIn(c, request, e);
    public static Context obtainContext(HttpServletRequest request)        throws SQLException    {        Context c = (Context) request.getAttribute("dspace.context");                if (c == null)        {            // No context for this request yet            c = new Context();                        // See if a user has authentication            Integer userID = (Integer)                request.getSession().getAttribute("dspace.current.userid");            if (userID != null)            {                EPerson e = EPerson.find(c, userID.intValue());                // If the user ID is invalid, this will just initialise                // anonymous access                c.setCurrentUser(e);            }            // Set the session ID            c.setExtraLogInfo("session_id=" + request.getSession().getId());            // Store the context in the request            request.setAttribute("dspace.context", c);        }                return c;    }