private void writeBookList() {
        BookXMLHandler addBook = new BookXMLHandler();
        try {
            addBook.writeToFile(bookList);
        } catch (JAXBException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (SAXException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }