@Override
    public void actionPerformed(ActionEvent ae) {
        System.out.print(this);
        System.out.println(".actionPerformed");
        
        if(ae.getSource() instanceof Formulario){
            Formulario form = (Formulario)ae.getSource();
            if(form.isResult()){
                if(formState == FormState.CREATING){
                    executarCommand(Operation.INSERIR, form.getObject());
                }
                else if(formState == FormState.UPDATING){
                    executarCommand(Operation.ATUALIZAR, form.getObject());
                }
            }
            formState = FormState.NONE;
        }
    }