propertyBook.setClient(client);
propertyBook.setProperty(selectedProperty);
book = propertyBook;
} else if (selectedBookType.equals(BookType.STOCKS_BOOK)) {
// stock book
StocksBook stocksBook = new StocksBook();
stocksBook.setName(name);
stocksBook.setClient(client);
book = stocksBook;
} else if (selectedBookType.equals(BookType.GENERIC_BOOK)) {
// generic book (general expenses and income)
GeneralBook generalBook = new GeneralBook();
generalBook.setName(name);