private void addPropertiesToModel(List localProperties,Item parent){
  for (Iterator iter=localProperties.iterator(); iter.hasNext(); ) {
    Property property=(Property)iter.next();
    Item propertyItem=new Item(property,parent);
    model.add(propertyItem);
    Property[] subProperties=property.getSubProperties();
    if (subProperties != null && subProperties.length > 0)     addPropertiesToModel(Arrays.asList(subProperties),propertyItem);
  }
}

private void addPropertiesToModel ( List localProperties , Item parent ) { for ( Iterator iter = localProperties . iterator ( ) ; iter . hasNext ( ) ; ) { Property property = ( Property ) iter . next ( ) ; Item propertyItem = new Item ( property , parent ) ; model . add ( propertyItem ) ; Property [ ] subProperties = property . getSubProperties ( ) ; if ( subProperties != null && subProperties . length > 0 ) addPropertiesToModel ( Arrays . asList ( subProperties ) , propertyItem ) ; } }
add the specified properties to the model using the specified parent .
