private void jmiRestoreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRestoreActionPerformed
        int resp;
        resp = RealizarBackupMySQL.showOpenDialog(this);
        if (resp == JFileChooser.APPROVE_OPTION) {
            try {
                InterfazSCHCG metodo = (InterfazSCHCG) registry.lookup("conex");
                boolean todo_ok = metodo.restoreDB(RealizarBackupMySQL.getSelectedFile().toString());
                if (todo_ok) {
                    JOptionPane.showMessageDialog(this, "Informacion", "Restauracion exitosa",
                            JOptionPane.INFORMATION_MESSAGE);
                } else {
                    JOptionPane.showMessageDialog(this, "Error", "Se produjo un error",
                            JOptionPane.ERROR_MESSAGE);
                }
            } catch (RemoteException ex) {
                Logger.getLogger(frmPrincipal.class.getName()).log(Level.SEVERE, null, ex);
            } catch (NotBoundException ex) {
                Logger.getLogger(frmPrincipal.class.getName()).log(Level.SEVERE, null, ex);
            }
        } else if (resp == JFileChooser.CANCEL_OPTION) {
            JOptionPane.showMessageDialog(this, "Ha sido cancelada la generacion de restaurar");
        }
    }//GEN-LAST:event_jmiRestoreActionPerformed