Try with resources.
Merge pull request #10 from OlegAtsman/master

Resource leak: 'applicationContext' is never close. Fixed. Try with resources.