public RestWriter beginDocument(final String baseUrl, final String propertyView) throws IOException {
String currentType = baseUrl.replace(restPath + "/", "").replace("/" + propertyView, "");
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");