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