}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
ControleSessaoUsuario cUsuario = (ControleSessaoUsuario)((HttpServletRequest) request).getSession().getAttribute("controleSessaoUsuario");
if (cUsuario == null || !cUsuario.isUserLogado()){
String contextPath = ((HttpServletRequest) request).getContextPath();
((HttpServletResponse) response).sendRedirect(contextPath + "/faces/login.xhtml");
} else {
chain.doFilter(request, response);
}