@Override public List<Book> findBooksByTitle(String title) { Document doc = __wrapper.getDocument(); List<Book> books = new ArrayList<Book>(); try { List<Map<String, String>> list = __wrapper.filterEntries(doc, "title", title); for (Map<String, String> map : list) { Book book = new Book( map.get("isbn"), map.get("publisher"), map.get("title"), Integer.parseInt(map.get("year")), map.get("authorIds")); books.add(book); } } catch (Exception e) { e.printStackTrace(); } return books; }