public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        try {
            String reqState = req.getParameter("reqState");
            if (reqState == null || reqState.length() == 0) {
                reqState = "htmlShowLogin";
            }
            // //
            UtilBundle.log.logMessage("LoginController", "miloService", "ReqState is: " + reqState, 3);
            System.out.println("LoginController ReqState is: " + reqState);
            // //
            if (reqState.equals("htmlShowLogin")) {
                htmlShowLogin(req, res);
            } else if (reqState.equals("htmlProcessLogin")) {
                htmlProcessLogin(req, res);
            } else if (reqState.equals("htmlProcessLogout")) {
                htmlProcessLogout(req, res);
            } else {
                if (!isUserSessionValid(req)) {
                    htmlShowLogin(req, res);
                    return;
                }
                if (reqState.equals("htmlShowHome")) {
                    htmlShowHome(req, res);
                } else {
                    // //
                    System.err.println("LoginController: "
                            + reqState
                            + " does not match a valid request state");
                    // //
                    UtilBundle.log.logMessage("LoginController", "miloService", reqState + " does not match a valid request state", 3);
                    htmlShowLogin(req, res);
                }
            }
        } catch (Exception e) {
            // //
            System.err.println("Error: LoginController");
            // //
            UtilBundle.log.logMessage("LoginController", "miloService", "Error" + e.toString(), 3);
            e.printStackTrace();
        }
    }