}
public void addToggle(String menuName) {
CFJToggleButton toggleMenu = null;
try {
toggleMenu = (CFJToggleButton) factory.createViewer(new ToggleButtonEditorCreator(), applicationModel.getChild(menuName)).getJComponent();
} catch (Exception e) {
e.printStackTrace();
toggleMenu = new CFJToggleButton(factory.getClientResource(), menuName);
}