public List<BookRepresentation> getBooks() {
List<BookRepresentation> bookRepresentations = new ArrayList<BookRepresentation>();
for (Book book : bookDao.getBooks()) {
// Create a representation of the Book.
BookRepresentation bookRepresentation = new BookRepresentation();
bookRepresentation.setId(book.getId());
bookRepresentation.setISBN(book.getISBN());
bookRepresentation.setTitle(book.getTitle());
bookRepresentation.setAuthor(book.getAuthor());
bookRepresentation.setPrice(book.getPrice());
// Add it to the list of Book representations.
bookRepresentations.add(bookRepresentation);
}