public void give() {

        int quantity;

        for (Loan l : this.getStockController().getStock().getLoans()) {

            if (CalendarController.calendarToString(l.getStart()).equals(
                    CalendarController
                            .calendarToString(new GregorianCalendar()))) {

                quantity = l.getQuantity();

                for (Equipment e : this.getStockController().getStock()
                        .getEquipment()) {

                    if (0 < quantity && l.getName().equals(e.getName())
                            && e.getState().equals(State.FUNCTIONAL)
                            && e.getLoanID() == null) {

                        e.setLoanID(l.getID());

                        quantity--;
                    }
                }

                System.out.println("The user " + l.getUser().toString()
                        + " get the equiment " + l.getName() + ".");

                System.out.println(quantity + " equipment missing.");
            }
        }
    }