@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) throws CommandException, ServletException, IOException {
        int countReceiverId = Integer.parseInt(request.getParameter("count_number2"));
        float summaTransaction = Float.parseFloat(request.getParameter("summa"));
        int countID = Integer.parseInt(request.getParameter("count_number"));
        Count countFrom = null;
        Count countTo = null;
        Client client = (Client) request.getSession().getAttribute("person");
        List<CreditCard> cardList = client.getCreditCards();
        for (CreditCard card : cardList) {
            if (card.getCount().getCountID() == countID) {
                countFrom = card.getCount();
            }
        }
        ICountDAO countDAO = DAOFacade.getCountDAO();
        try {
            countTo = countDAO.get(countReceiverId);
            if (validate(countFrom, countTo, summaTransaction) == false) {
                throw new CommandException("No money");
            }
            countTo.setValue(countTo.getValue() + summaTransaction);
            countDAO.update(countTo);
            countFrom.setValue(countFrom.getValue() - summaTransaction);
            countDAO.update(countFrom);
            CommandFactory.getPageCommand("transaction").execute(request, response);
        } catch (DaoException e) {
            throw new CommandException("Cant update", e);
        }
    }