jsp refactoring