private int processRequest(BankRequest bankRequest) {

        /*
        if (bankRequest.getUser().getAccountId() >= accounts.size()) {
            return; // Can not handle the bankRequest
        }
        */

        /*
        com.bank.Account account = accounts.get(0);
        int iterator = 0;
        int size = accounts.size();
        int id = bankRequest.getUser().getAccountId();

        while ((iterator + 1 < size) && (account.getId() != id)) {
            ++iterator;
            account = accounts.get(iterator);
        }

        if (id != account.getId()) {
            return; // Can not handle the bankRequest
        }
        */

        performedOperations++;


        // WRONG!!!!!!
        int res = 0;

        // WRONG!!!!!!
        switch (bankRequest.getOperation()) {
            case BankRequest.OPERATION_CREATE_ACCOUNT: {
                createOperations++;

                //System.out.println("Type: CREATE_ACCOUNT.");
                accounts.add(new Account(accounts.size(), 1234));
                res = accounts.size() - 1;
                break;
            }
            case BankRequest.OPERATION_CREDIT: {
                //System.out.println("Type: CREDIT.");
                creditOperations++;

                if (isRequestValidForTransactions(bankRequest)) {
                    int amount = bankRequest.getAmount(); // WRONG!!!!!!
                    int id = bankRequest.getUser().getAccountId();

                    accounts.get(id).credit(amount);
                }
                break;
            }
            case BankRequest.OPERATION_DEPOSIT: {
                //System.out.println("Type: DEPOSIT.");
                depositOperations++;

                if (isRequestValidForTransactions(bankRequest)) {
                    int amount = bankRequest.getAmount(); // WRONG!!!!!!
                    int id = bankRequest.getUser().getAccountId();

                    accounts.get(id).deposit(amount);
                }
                break;
            }
        }
        return res;
    }