public Object[] getChildren(Object parentElement)
{
if (parentElement instanceof ModelObject)
{
ModelObject modelObject = (ModelObject)parentElement;
IModelClass modelClass = modelObject.getModelClass();
IModelProperty[] properties = modelClass.getProperties();
Object[] children = new Object[properties.length];
for (int i = 0; i < properties.length; i++)
{
children[i] = modelObject.getPropertyValue(properties[i]);
}
return children;
}
else if (parentElement instanceof Collection)