m_Loader.reset();
    public void run() {      try {	m_visual.setAnimated();	boolean instanceGeneration = true;	// determine if we are going to produce data set or instance events	/*	for (int i = 0; i < m_listeners.size(); i++) {	  if (m_listeners.elementAt(i) instanceof DataSourceListener) {	    instanceGeneration = false;	    break;	  }	  } */	if (m_dataSetEventTargets > 0) {	  instanceGeneration = false;	}	if (instanceGeneration) {	  //	  boolean start = true;	  Instance nextInstance = null;	  // load and pass on the structure first	  Instances structure = null;	  try {	    System.err.println("NOTIFYING STRUCTURE AVAIL");	    structure = m_Loader.getStructure();	    notifyStructureAvailable(structure);	  } catch (IOException e) {	    e.printStackTrace();	  }	  try {	    nextInstance = m_Loader.getNextInstance();	  } catch (IOException e) {	    e.printStackTrace();	  }	  int z = 0;	  while (nextInstance != null) {	    nextInstance.setDataset(structure);	    //	    format.add(nextInstance);	    /*	    InstanceEvent ie = (start)	      ? new InstanceEvent(m_DP, nextInstance, 				  InstanceEvent.FORMAT_AVAILABLE)		: new InstanceEvent(m_DP, nextInstance, 		InstanceEvent.INSTANCE_AVAILABLE); */	    //	    if (start) {	    //	      m_ie.setStatus(InstanceEvent.FORMAT_AVAILABLE);	      //	    } else {	    m_ie.setStatus(InstanceEvent.INSTANCE_AVAILABLE);	      //	    }	    m_ie.setInstance(nextInstance);	    //	    start = false;	    //	    System.err.println(z);	    nextInstance = m_Loader.getNextInstance();	    if (nextInstance == null) {	      m_ie.setStatus(InstanceEvent.BATCH_FINISHED);	    }	    notifyInstanceLoaded(m_ie);	    z++;	  }	  m_visual.setStatic();	} else {	  m_dataSet = m_Loader.getDataSet();	  m_visual.setStatic();	  m_visual.setText(m_dataSet.relationName());	  notifyDataSetLoaded(new DataSetEvent(m_DP, m_dataSet));	}      } catch (Exception ex) {	ex.printStackTrace();      } finally {	m_ioThread = null;	//	m_visual.setText("Finished");	//	m_visual.setIcon(m_inactive.getVisual());	m_visual.setStatic();      }    }