try (final Tx tx = app.tx()) {
for (SchemaNode node : app.nodeQuery(SchemaNode.class).getAsList()) {
final String rawType = node.getName();
top.inline("a").attr(new Href(restPath + "/" + rawType), new If(rawType.equals(currentType), new Css("active"))).text(rawType);
}
} catch (Throwable t) {
t.printStackTrace();
}
for (String view : StructrApp.getConfiguration().getPropertyViews()) {
if (!hiddenViews.contains(view)) {
left.inline("a").attr(new Href(restPath + "/" + currentType + "/" + view), new If(view.equals(propertyView), new Css("active"))).text(view);
}
}
// main div
currentElement = body.block("div").id("right");