private void getWaitingPage(HttpServletResponse resp, UserSession session, Map<String, Object> pageVariables, String pageTemplate) throws ServletException, IOException {
        String isWaiting = "false";
        if (session != null) {
            switch (session.getStatus()) {
                case AccountServiceMessages.WAIT_AUTH:
                case AccountServiceMessages.WAIT_USER_REG:
                    isWaiting = "true";
                    break;
                case AccountServiceMessages.AUTHORIZED:
                    resp.sendRedirect(Pages.TIMER_PAGE);
                    return;
            }
        }
        pageVariables.put("waiting", isWaiting);
        sendResponse(resp, pageTemplate, pageVariables);
    }