Small refactoring of JSP code