IOException is removed from CustomThymeleafNarrativeGenerator