public void collectionProcessComplete(ProcessTrace aTrace) throws ResourceProcessException,
          IOException {
    if (trainWriter != null) {
      trainWriter.close();
    }
    if(testWriter != null)
      testWriter.close();
  }