private void createOneDishOrders(String[] selectedDishes, List<AvailableDish> availableDishs,
            GenericDao<OneDishOrder> oneDishOrderDao, int newOrderId) throws SQLException {
        for (String selectedDish : selectedDishes) {
            for (AvailableDish availableDish : availableDishs) {
                if (selectedDish.equals(availableDish.getDishName())) {
                    oneDishOrderDao.insert(new OneDishOrder() {
                        {
                            setIdOrder(newOrderId);
                            setIdDish(availableDish.getIdAvailabelDish());
                        }
                    });
                }
            }
        }
    }