//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( l );
registerExpressionColumnParameter(expressionColumn.getColumnProperty().getProperty(), expressionColumn.getExpression());