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