Fix a problem with try-with-resources and JavaNCSS