private void btnSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalvarActionPerformed
        if (dadosValidos()) {
            if (senhasValidas()) {
                try {
                    salvar();
                } catch (ValidacaoException ex) {
                    _unitOfWork.rollback();
                    JOptionPane.showMessageDialog(this, ex.getMessage(), "Erro", JOptionPane.ERROR_MESSAGE);
                }
            } else
                JOptionPane.showMessageDialog(this, "Confirme a senha corretamente", "Erro", JOptionPane.WARNING_MESSAGE);
        } else
            JOptionPane.showMessageDialog(this, "Preencha todos os campos obrigatórios", "Erro", JOptionPane.WARNING_MESSAGE);
    }//GEN-LAST:event_btnSalvarActionPerformed