Template for class with try-with-resources.

Example template for class with try-with-resources has been added.