* @param property the property to add
*/
protected void addProperty(PropertyInfo property)
{
properties.add(property);
PropertyInfo previous = propertiesByName.put(property.getName(), property);
if (previous != null)
{
NestedPropertyInfo nestedPropertyInfo;
if (previous instanceof NestedPropertyInfo)
{
nestedPropertyInfo = (NestedPropertyInfo)previous;
}
else
{
nestedPropertyInfo = new NestedPropertyInfo(previous.getName(), this);
nestedPropertyInfo.addPropertyInfo(previous);
propertiesByName.put(previous.getName(), nestedPropertyInfo);
}
nestedPropertyInfo.addPropertyInfo(property);
}
if (property instanceof AbstractPropertyInfo)
{