if (index == -1) {
if (element.isRestricted()) {
value = element.getValues().firstElement().toString();
}
else {
final IActor actor = new RegistryAttributeValueActor(element, value, false);
Controller.getCurrentModeController().execute(actor, map);
}
}
}
catch (final NoSuchElementException ex) {
final AttributeRegistry registry = AttributeRegistry.getRegistry(map);
final IActor nameActor = new RegistryAttributeActor(name, false, false, registry, map);
Controller.getCurrentModeController().execute(nameActor, map);
final AttributeRegistryElement element = registry.getElement(name);
final IActor valueActor = new RegistryAttributeValueActor(element, value, false);
Controller.getCurrentModeController().execute(valueActor, map);
}
final Object newValue = value;
final IActor actor = new InsertAttributeActor(model, row, name, newValue);
Controller.getCurrentModeController().execute(actor, map);
}