I already have other configuration features which map the <myConfig> tag with JAXB to a POJO. Then this POJO is read to configure the library internally.
In my processor, I receive an element parsed by Thymeleaf. To save CPU cycles, I don't want to map this Element to my POJO. It would be faster to directly parse the raw template content into the desired POJO.
I don't really know what is possible or what is the best solution. Specifying my own ITemplateParser ? Using a particular syntax to just receive a text node as element and then parse its string representation inside my processor ?