protected void stopListening() {
   folder.removeFolderListener(folderListener);
   folderListener = null;
 }