ExtendedDataModel dataModel = super.createDataModel();
Modifiable modifiable = null;
if (dataModel instanceof Modifiable) {
modifiable = (Modifiable) dataModel;
} else if (!filterFields.isEmpty() || !sortFields.isEmpty()) {
ModifiableModel modifiableModel = new ModifiableModel(dataModel, getVar());
dataModel = modifiableModel;
modifiable = modifiableModel;
}
if (dataModel instanceof LocaleAware) {