Use Groovy template stub instead of template literal subclass