fGroupingType = BookMarkGrouping.Type.values()[fGlobalPreferences.getInteger(DefaultPreferences.BE_GROUP_TYPE)];
IPreference pref = fPrefDAO.load(PREF_SELECTED_BOOKMARK_SET);
Assert.isTrue(fRootFolders.size() > 0, "Could not find any Bookmark Set!"); //$NON-NLS-1$
if (pref != null)
fSelectedBookMarkSet = new FolderReference(pref.getLong().longValue()).resolve();
else {
fSelectedBookMarkSet = getRootFolderAt(0);
/* Save this to make sure subsequent calls succeed */
pref = Owl.getModelFactory().createPreference(PREF_SELECTED_BOOKMARK_SET);