protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        HttpSession session = request.getSession();
        beans.SStatus sStatus = (beans.SStatus) session.getAttribute(common.BeansConfig.sStatus);
        
        if (request.getParameter("bid") != null && !request.getParameter("bid").equals("")){
            beans.RBooking booking = new beans.RBooking(request.getParameter("bid"));
            if (booking.fetchDBData()){
                if (request.getRequestURI().contains(common.URLConfig.SURL_orderTicketHide)){
                     servlets.orderTicketHelper.BookingHandler.hideBooking(booking);
                }
                else{
                    servlets.orderTicketHelper.BookingHandler.deleteBooking(booking);
                }
            }
            if (!common.Validation.isNull(request.getParameter("next"))){
                if(request.getParameter("next").equals("account")){
                    response.sendRedirect(common.URLConfig.getFullPath(common.URLConfig.SURL_account));
                }
                else if(request.getParameter("next").equals("officer") && sStatus.getUserRole().equals(common.RolesConfig.Officer)){
                    response.sendRedirect(common.URLConfig.getFullPath(common.URLConfig.SURLo_officer));
                }
            }
        }
        
        //clean up
        servlets.orderTicketHelper.BookingHandler.clearSessionCurrentBooking(session);
        
        response.sendRedirect(common.URLConfig.getFullPath(common.URLConfig.SURL_movies));
    }