@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) throws CommandException, DaoException, ServletException, IOException {
        Client client = (Client) request.getSession().getAttribute("person");
        List<CreditCard> cardList = client.getCreditCards();
        int cardId = Integer.parseInt(request.getParameter("cardId"));
        CreditCard card = null;
        for (CreditCard c : cardList) {
            if (c.getCardID() == cardId) {
                card = c;
                break;
            }
        }
        ICardDAO cardDAO = DAOFacade.getCardDAO();
        card.setStatus(true);
        try {
            cardDAO.update(card);
        } catch (DaoException e) {
            throw new CommandException("Can`t activate card", e);
        }
        CommandFactory.getPageCommand("cardStatus").execute(request, response);
    }