refactoring based on spring-web-project