/* Import from File */
File file = new File(fileName);
InputStream inS = new FileInputStream(file);
List<? extends IEntity> types = Owl.getInterpreter().importFrom(inS);
IFolder importedContainer = (IFolder) types.get(0);
/* Load the current selected Set */
Long selectedFolderID = fPrefsDAO.load(BookMarkExplorer.PREF_SELECTED_BOOKMARK_SET).getLong();
IFolder rootFolder = fFolderDAO.load(selectedFolderID);
/* Reparent all imported folders into selected Set */
List<IFolder> folders = importedContainer.getFolders();
for (IFolder folder : folders) {
folder.setParent(rootFolder);
rootFolder.addFolder(folder, null, null);
}
/* Reparent all imported marks into selected Set */
List<IMark> marks = importedContainer.getMarks();
for (IMark mark : marks) {
mark.setParent(rootFolder);
rootFolder.addMark(mark, null, null);
}
/* Save Set */
fFolderDAO.save(rootFolder);
} catch (Exception e) {