final HttpServletResponse response, final HttpSession hSession) throws ServletException,
IOException {
final PrintWriter out = response.getWriter();
final User user = (User) hSession.getAttribute(SessionAttribute.USER);
if (null != user) {
user.userDidSomething();
}
int serial = -1;
if (request.getParameter(AjaxRequest.SERIAL.toString()) != null) {
try {
serial = Integer.parseInt(request.getParameter(AjaxRequest.SERIAL.toString()));