@ Override public void process ( Writer writer ) { try { template . process ( data , writer ) ; } catch ( IOException e ) { throw new RuntimeException ( "Error writing template to writer" , e ) ; } catch ( TemplateException e ) { throw new RuntimeException ( e . getMessage ( ) , e ) ; } }
Render the template to a Writer