try {
final AttributeRegistryElement element = attributeRegistry.getElement(name);
if (element.getValues().contains(value)) {
return;
}
final IActor actor = new RegistryAttributeValueActor(element, value, manual);
Controller.getCurrentModeController().execute(actor, map);
return;
}
catch (final NoSuchElementException ex) {
final IActor nameActor = new RegistryAttributeActor(name, true, false, attributeRegistry, map);
Controller.getCurrentModeController().execute(nameActor, map);
final AttributeRegistryElement element = attributeRegistry.getElement(name);
final IActor valueActor = new RegistryAttributeValueActor(element, value, false);
Controller.getCurrentModeController().execute(valueActor, map);
}
}