// }
// commit changes (made at each option panel) on inference algorithm
InferenceAlgorithmOptionPanel currentPanel = getSelectedAlgorithmOptionPanel();
if (currentPanel != null) {
currentPanel.commitChanges();
// updating the inference algorithm referenced by controller
controller.setInferenceAlgorithm(currentPanel.getInferenceAlgorithm());
}