if ( propertyColumn.getColumnProperty() != null && !(entity instanceof ExpressionColumn)){
getDjd().addField((JRField)transformEntity(entity));
}
if (entity instanceof ExpressionColumn) {
//The Custom Expression parameter must be registered
ExpressionColumn expressionColumn = (ExpressionColumn) entity;
// ArrayList l = new ArrayList(getColumns());
// for (Iterator iter = getDynamicReport().getFields().iterator(); iter.hasNext();) {
// ColumnProperty columnProperty = (ColumnProperty) iter.next();
// SimpleColumn simpleColumn = new SimpleColumn();
// simpleColumn.setColumnProperty(columnProperty);
// l.add(simpleColumn);
//
// }
expressionColumn.setColumns( getDynamicReport().getAllFields() );
expressionColumn.setVariables( new ArrayList(getDjd().getVariablesList()) );
String property_name = expressionColumn.getColumnProperty().getProperty();
registerExpressionColumnParameter(property_name, expressionColumn.getExpression());
registerExpressionColumnParameter(property_name + "_calc", expressionColumn.getExpressionForCalculation());
}
} catch (JRException e) {
log.info(FIELD_ALREADY_REGISTERED);
}
}