ElementBean lastChild = null;
for (int i = 1; i < 5; i++) {
lastChild = (ElementBean) createVerbatim(ElementBean.class, String
.valueOf(i));
lastChild.setRenderId(i);
root.addChild(lastChild);
}
for (int i = 5; i < 10; i++) {
ElementBean child = (ElementBean) createVerbatim(ElementBean.class,
String.valueOf(i));