Add missing braces in finallyCloseStream template

Hi,
thanks for this nice plugin. Great idea!

This pull request contains a small change to the java templates where I added some missing braces to the if-statement.

If you have any suggestions, make sure to let me know.

All the best,
Thomas