value = getColumn().getAttribute(name);
}
// Checks whether it's another column
if (value instanceof Column)
{ // Special case: Value is a column
Column col = ((Column)value);
Object rec = getRecord();
if (rec instanceof Record)
return ((Record)rec).getValue(col);
else if (rec!=null)
{ // Get Value from a bean
String property = col.getBeanPropertyName();
try
{ // Use Beanutils to get Property
PropertyUtilsBean pub = BeanUtilsBean.getInstance().getPropertyUtils();
return pub.getSimpleProperty(rec, property);
}