Class elementType) {
PropertyDescriptor propertyDescriptor;
IListProperty property;
if (beanClass == null) {
propertyDescriptor = null;
property = new AnonymousBeanListProperty(propertyName, elementType);
} else {
propertyDescriptor = BeanPropertyHelper.getPropertyDescriptor(
beanClass, propertyName);
property = new BeanListProperty(propertyDescriptor, elementType);
}