Refactor: Changed request.setAttribute