void (ContentEntry contentEntry, ContentFolderRef folderRef) { ContentFolder folder = folderRef.getContentFolder(); if (folder instanceof SourceFolder) { removeSourceFolder((SourceFolder)folder); update(); } else if (folder instanceof ExcludeFolder) { removeExcludeFolder(folder.getUrl()); update(); } }