protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/plain;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            log("caller="+request.getParameter("id"));
            /* TODO output your page here. You may use following sample code. */
            out.println("id="+request.getParameter("id"));
            out.println("block="+request.getParameter("block"));
            out.println("sendTime="+request.getParameter("sendTime"));
            out.println("receivedTime="+Calendar.getInstance().getTimeInMillis());
//            out.println("Received Time:"+SimpleDateFormat.getTimeInstance(DateFormat.LONG).format(Calendar.getInstance().getTime()));
            out.println("Received Time:"+String.format("%1$tH:%1$tM:%1$tS,%1$tL", Calendar.getInstance().getTime()));
            
            if (request.getParameter("sendTime") != null && NumberUtils.isNumber(request.getParameter("sendTime"))) {
//                out.println("Send Time:"+SimpleDateFormat.getTimeInstance(DateFormat.LONG).format(new Date(Long.valueOf(request.getParameter("sendTime")))));
                out.println("Send Time:"+String.format("%1$tH:%1$tM:%1$tS,%1$tL", new Date(Long.valueOf(request.getParameter("sendTime")))));
            }
            long pause = 0;
            if (request.getParameter("block") != null && NumberUtils.isNumber(request.getParameter("block"))) {
                pause = Long.valueOf(request.getParameter("block"));
            }
            
            if (pause == 0) {
                pause = 2500;
            }
            try {
                Thread.currentThread().sleep(pause);
            } catch (InterruptedException ex) {
                Logger.getLogger(test.class.getName()).log(Level.SEVERE, null, ex);
            }
//            out.println("Response Time:"+SimpleDateFormat.getTimeInstance(DateFormat.LONG).format(Calendar.getInstance().getTime()));
            out.println("Response Time:"+String.format("%1$tH:%1$tM:%1$tS,%1$tL", Calendar.getInstance().getTime()));
            out.println("responseTime="+Calendar.getInstance().getTimeInMillis());
            out.println("responseTime="+Calendar.getInstance().getTimeInMillis());
            out.println("thread="+Thread.currentThread().getName());
            
        } finally {            
            out.close();
        }
    }