public void addOutputField(final OutputField outputField,
final boolean ideal) {
this.outputFields.add(outputField);
outputField.setIdeal(ideal);
if (outputField instanceof OutputFieldGrouped) {
final OutputFieldGrouped ofg = (OutputFieldGrouped) outputField;
this.groups.add(ofg.getGroup());
}
}