Convert to try-with-resources
Remove last lines to display only the file is a generated file from the application
Update jar file