filterConfig.addInitParameter("connectionName", "CONNURLENVVAR");
filter.init(filterConfig);
if (!isSessionStorage) {
MockHttpServletResponse tempMockResponse = new MockHttpServletResponse();
SecurityContextService securityContextService = filter.getSecurityContextService();
securityContextService.setSecurityContextToSession(request, tempMockResponse, originalSc);
request.setCookies(sidCookie, endpointCookie,
tempMockResponse.getCookie(SecurityContextCookieStore.SECURITY_CONTEXT_COOKIE_NAME));
} else {
request.getSession().setAttribute(SecurityContextSessionStore.SECURITY_CONTEXT_SESSION_KEY, originalSc);
request.setCookies(sidCookie, endpointCookie);