InferenceAlgorithmOptionPanel algorithmOptionPanel = null; // the mapped object
// we assume algorithm equality as class equality (if 2 algorithms uses the same class, we assume they are the same algorithm)
// junction tree
algorithmOptionPanel = new JunctionTreeOptionPanel();
radio = new JRadioButtonMenuItem(algorithmOptionPanel.getInferenceAlgorithm().getName(),
(controller.getInferenceAlgorithm()!= null) && (controller.getInferenceAlgorithm().getClass().equals(algorithmOptionPanel.getInferenceAlgorithm().getClass())));
radio.setToolTipText(algorithmOptionPanel.getInferenceAlgorithm().getDescription());
ret.put(radio, algorithmOptionPanel);