}
CallbackHandler callbackHandler;
if (useCookieLogin && !httpLoginForced) {
callbackHandler = new CookieCallBackHandler(ehRequest, response);
} else {
callbackHandler = new WebCallBackHandler(request);
}
loginContext = new LoginContext(servletContextName, callbackHandler);
} catch (LoginException e) {
logger.error("Initializing LoginContext", e);