}
// create new menu if not exists
if (menubar.containsKey(command.getMenu()) == false)
{
menubar.put(command.getMenu(), new CommandMenu(command.getMenu(), this.getController(), command.getMenu(),
"", ""));
}
// put the command in the menu
menubar.get(command.getMenu()).addCommand(command);