implementing custom dialect and processor for thymeleaf