public ShowBorrowReader(final PageParameters parameters) {
super(parameters);
BorrowService borrowService = (BorrowService) ApplicationContextProvider.getApplicationContext().getBean("borrowService");
RepeatingView repeating = new RepeatingView("repeating");
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
AuthenticatedSession session = ((AuthenticatedSession)Session.get());
for (BorrowTO borrow : borrowService.findBorrowsByReader(session.getReader())) {
for (BookTO book: borrow.getTitlesTO()){
AbstractItem item = new AbstractItem(repeating.newChildId());
item.add(new Label("title", book.getTitle()));
item.add(new Label("author", book.getAuthor()));
item.add(new Label("borrowdate", dateFormat.format(borrow.getBorrowDate())));