collectionDescriptor, collectionFieldClass);
ReflectionUtils.setNestedProperty(object, collectionDescriptor.getFieldName(), proxy);
}
else
{
ManageableObjects objects = collectionConverter.getCollection(session, parentNode, collectionDescriptor, collectionFieldClass);
if (objects==null)
{
ReflectionUtils.setNestedProperty(object, collectionDescriptor.getFieldName(), null);
}
else
{
// TODO: find another for managing custom ManageableObjects classes
if ( ! objects.getClass().equals(ManageableCollectionImpl.class) &&
! objects.getClass().equals(ManageableMapImpl.class))
{
ReflectionUtils.setNestedProperty(object, collectionDescriptor.getFieldName(), objects);
}
else
{
ReflectionUtils.setNestedProperty(object, collectionDescriptor.getFieldName(), objects.getObjects());
}
}
}