PropertyDescriptor propertyDescriptor;
IValueProperty property;
if (beanClass == null) {
propertyDescriptor = null;
property = new AnonymousBeanValueProperty(propertyNames[0],
valueType);
} else {
propertyDescriptor = BeanPropertyHelper.getPropertyDescriptor(
beanClass, propertyNames[0]);
property = new BeanValueProperty(propertyDescriptor, valueType);