saveRepresentationChanges();
if (reactionsPanel != null) {
for (Component component : reactionsPanel.getPanel().getComponents()) {
if (component instanceof ReactionEditor) {
ReactionEditor editor = (ReactionEditor) component;
editor.finalizeEditing();
}
}
}
if (environmentComboBox.getSelectedItem() != null) {
EnvironmentLogic selEnv = (EnvironmentLogic) environmentComboBox.getSelectedItem();