/**
* Receives a PropertyColumn and returns a JRDesignField
*/
protected Object transformEntity(Entity entity) {
PropertyColumn propertyColumn = (PropertyColumn) entity;
JRDesignField field = new JRDesignField();
ColumnProperty columnProperty = propertyColumn.getColumnProperty();
field.setName(columnProperty.getProperty());
field.setValueClassName(columnProperty.getValueClassName());
log.debug("transforming column property: " + columnProperty.getProperty() + " (" + columnProperty.getValueClassName() +")");
field.setDescription(propertyColumn.getFieldDescription()); //hack for XML data source
Iterator iter = columnProperty.getFieldProperties().keySet().iterator();
while (iter.hasNext()) {
String key = (String) iter.next();
field.getPropertiesMap().setProperty(key, (String) columnProperty.getFieldProperties().get(key));
}