@Override
    public void doFilter(ServletRequest request, ServletResponse response,
            FilterChain chain)
            throws IOException, ServletException {

        HttpServletRequest req = (HttpServletRequest) request;
        HttpSession session = req.getSession();
        ClientType type = (ClientType)session.getAttribute(JSP_ROLE_TYPE);
        if (type == null) {
            type = ClientType.GUEST;
        }
        session.setAttribute(JSP_ROLE_TYPE, type);


        chain.doFilter(request, response);

    }