if(ui!=null) {
for(int i=0, size=instrumentsState.size(); i<size; i++)
instruments.get(i).setActivated(instrumentsState.get(i));
final LFrame frame = ui;
final IMapping mapping = new ShapeList2ExporterMapping(frame.getDrawing().getShapes(), frame.getExporter());
MappingRegistry.REGISTRY.addMapping(mapping);
mapping.init();
ui.setModified(false);
}
}