private boolean redirectForLogin(HttpServletRequest servletRequest) {
        String uri = servletRequest.getRequestURI();
        return uri.endsWith(".jsp") || uri.endsWith("/carrinho") || uri.endsWith("/carrinho/") || uri.endsWith("/carrinho/main")
                 || uri.endsWith("/carrinho/cad_lista")|| uri.endsWith("/carrinho/compras");
    }