File html = new File(directory, name + "_index.html");
LwgDocument document = new LwgDocument();
HtmlWriter.getInstance(document, new FileOutputStream(html));
Object css = getValue("css");
if (css != null) {
document.add(new Header(HtmlTags.STYLESHEET, css.toString()));
}
Object title = reader.getInfo().get("Title");
if (title == null)
document.addTitle("Index for " + src.getName());
else