copyResources(directory, book);
}
private void writeBibTex(File directory) throws FileNotFoundException, UnsupportedEncodingException {
File bibliographyFile = new File(directory, "bib.xml");
Bibliography bibliography = new BibliographyFactory().build(bibliographyFile);
String latexBibliography = new LatexBibliographyGenerator().generateTextOf(bibliography);
PrintStream stream = new PrintStream(new File(directory, "book.bib"), "UTF-8");
stream.append(latexBibliography);
stream.close();
}