}
// If this is read only information enumeration item.
else if (items[i] instanceof IInfoEnumColumnFormItem) {
// Creating control.
InfoDataControl ctrl = new InfoDataControl(
((IInfoEnumColumnFormItem) items[i]).getEnum());
// Binding row and column to control.
ctrl.bind(dataRow, ((IInfoFormItem) items[i]).getDataColumn());
addedControl = ctrl;
} else
// If this is read only information item.
if (items[i] instanceof IInfoFormItem) {
// Creating control.
InfoDataControl ctrl = new InfoDataControl();
// Binding row and column to control.
ctrl.bind(dataRow, ((IInfoFormItem) items[i]).getDataColumn());
addedControl = ctrl;
} else
// Throwing exception for unknown item type.
throw new NotImplementedFeatureException(
"Can't build control for type "