manage Servlet 3.x and 2.x for Thymeleaf Dialect