fix for Apache Tomcat (use WEB-INF/applicationContext.xml instead of classpath*:applicationContext.xml
unused code removed