//deal with XML extension for xml files
if (selectedFile.getName().toLowerCase().endsWith(
EnsembleLibrary.XML_FILE_EXTENSION)) {
LibrarySerialization librarySerialization;
Vector classifiers = new Vector();
for (Iterator it = library.getModels().iterator(); it.hasNext();) {
EnsembleLibraryModel model = (EnsembleLibraryModel) it.next();
classifiers.add(model.getClassifier());
}
try {
librarySerialization = new LibrarySerialization();
librarySerialization.write(selectedFile.getPath(), classifiers);
} catch (Exception e) {
e.printStackTrace();
}
//deal with MLF extesion for flat files