} else if (toolbarAction instanceof ToolbarModalAction) {
action = new ToolbarRadioAction((ToolbarModalAction) toolbarAction, "map-controller-group");
}
if (action != null) {
for (Parameter parameter : tool.getParameters()) {
action.configure(parameter.getName(), parameter.getValue());
}
return action;
}
}
return null;