To call a utility method within a TEXT Thymeleaf template, you need to expose the utility class (or its methods) as part of the context variables so that Thymeleaf can recognize and use it.