Document doc = Document.get();
Element parent = doc.createDivElement();
doc.getBody().appendChild(parent);
Layout layout = new Layout(parent);
layout.onAttach();
Element topChild = doc.createDivElement(), bottomChild = doc
.createDivElement();
Layer topLayer = layout.attachChild(topChild);
Layer bottomLayer = layout.attachChild(bottomChild);