@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) throws CommandException, DaoException, ServletException, IOException {
        if ("autorization".equals(page) && request.getSession().getAttribute("person") != null) {
            Object person = request.getSession().getAttribute("person");
            if (person instanceof Administrator) {
                CommandFactory.getPageCommand("adminPanel").execute(request, response);
                return;
            }
            if (person instanceof Client) {
                CommandFactory.getPageCommand("clientPanel").execute(request, response);
                return;
            }
        }
        try {
            if ("index".equals(page)) {
                request.getRequestDispatcher("index.jsp").forward(request, response);
            } else {
                StringBuilder pageBuilder = new StringBuilder("pages/");
                pageBuilder.append(page);
                pageBuilder.append(".jsp");
                request.getRequestDispatcher(pageBuilder.toString()).forward(request, response);
            }
        } catch (ServletException | IOException e) {
            throw new CommandException("Cant execute this page", e);
        }
    }