java library to generate file from template