Tag head = doc.block("head");
head.empty("link").attr(new Rel("stylesheet"), new Type("text/css"), new Href("//structr.org/rest.css"));
head.inline("script").attr(new Type("text/javascript"), new Src("//structr.org/CollapsibleLists.js"));
head.inline("title").text(baseUrl);
Tag body = doc.block("body").attr(new Onload("CollapsibleLists.apply(true);"));
Tag top = body.block("div").id("top");
final App app = StructrApp.getInstance(securityContext);
final Tag left = body.block("div").id("left");