return genLoginTemplate(context, session.getDescriptor().getID(), null);
return genLoginTemplate(context, session.getDescriptor().getID(), null, null);
    private Template loginPage(HttpServletRequest request, HttpServletResponse response, Context context) throws ParseErrorException, ResourceNotFoundException, Exception {        log.finer("loginPage(HttpServletRequest, HttpServletResponse, Context");                String id = request.getParameter("id");                try {            Session session = getSession(id);            if (session == null) {                return genLoginTemplate(context, null, "Sesjonen eksisterer ikke. Hendelsen er loggf&oslash;rt.");            }                        // Should also generate new sessionID            // (SessionStore.confirmSession()) to avoid the web            // service to do authentication without users intervention.            return genLoginTemplate(context, session.getDescriptor().getID(), null);        }                catch (SessionException e) {            return genLoginTemplate(context, null, e.getMessage());        }    }