protected List<ComponentData> buildChildren() {
if (children != null && children.size() > 0) {
ArrayList<ComponentData> dataChildren = new ArrayList<ComponentData>(children.size());
for (int i = 0; i < children.size(); i++) {
ModelObject node = children.get(i);
ModelData data = node.build();
dataChildren.add((ComponentData) data);
}
return Collections.unmodifiableList(dataChildren);
} else {
return Collections.emptyList();