expression.setValueClassName(col.getValueClassNameForExpression());
}
String variableName = col.getGroupVariableName(type, columnToGroupByProperty);
JRDesignVariable variable = new JRDesignVariable();
variable.setExpression(expression);
variable.setCalculation(columnsGroupVariable.getOperation().getValue());
variable.setName(variableName);
variable.setResetType(JRDesignVariable.RESET_TYPE_GROUP);
variable.setResetGroup(registeredGroup);
String valueClassName = col.getVariableClassName(op);
String initialExpression = col.getInitialExpression(op);
variable.setValueClassName(valueClassName);
JRDesignExpression initialExp = new JRDesignExpression();
initialExp.setText(initialExpression);
initialExp.setValueClassName(valueClassName);
variable.setInitialValueExpression(initialExp);
return variable;
}