protected AbstractAction getAction(ActionEvent evt) {
        String actionCommand = null;
        if (evt.getSource() instanceof ButtonBase) {
            ButtonBase button = (ButtonBase) evt.getSource();
            actionCommand = button.getId();
        }
        
        if (actionCommand == null) {
            if (evt.getSource() instanceof MenuItem) {
                MenuItem menu = (MenuItem) evt.getSource();
                actionCommand = menu.getId();
            }
        }
        
        if (actionCommand == null) {
            log.error("Gerador do evento desconhecido, nao eh Button ou MenuItem!");
            throw new RuntimeException("Gerador do evento desconhecido, nao eh Button ou MenuItem!");
        }
        
        return actions.get(actionCommand);
    }