public void populate(FormItemRepresentation rep) throws FormBuilderException {
if (!(rep instanceof LoopBlockRepresentation)) {
throw new FormBuilderException(i18n.RepNotOfType(rep.getClass().getName(), "LoopBlockRepresentation"));
}
super.populate(rep);
LoopBlockRepresentation lrep = (LoopBlockRepresentation) rep;
this.variableName = lrep.getVariableName();
this.loopBlock.clear();
if (lrep.getInputName() != null && !"".equals(lrep.getInputName())) {
InputData input = new InputData();
input.setName(lrep.getInputName());
lrep.setInput(input);
}
if (lrep.getLoopBlock() != null) {
FBFormItem child = super.createItem(lrep.getLoopBlock());
this.loopBlock.add(child);
}
}