cModel.buildClassifier(trainingSet);
saveTheModel(cModel, maxNumFeats);
ArffSaver saver = new ArffSaver();
saver.setInstances(trainingSet);
saver.setFile(new File(PropertiesGetter.getProperty("TrainingDataSetObject")));
saver.writeBatch();
} catch (Exception ex) {
Logger.getLogger(WekaWrapper.class.getName()).log(Level.SEVERE, null, ex);
System.out.println(ex.toString());
}
}