code: private void storeRecentList(final List recent) {
  		try {
  			if (recent == null) {
  				return;
  			}
  
  			// Only keep the last 8 entries.
  			while (recent.size() > 8) {
  				recent.remove(recent.size() - 1);
  			}
  
  			OutputStream out = new BufferedOutputStream(new FileOutputStream(
  					RECENT_FILE_NAME));
  			XMLEncoder e = new XMLEncoder(out);
  			e.writeObject(recent);
  			e.close();
  		} catch (IOException ex) {
  			LOG.error("Unable to save recent list", ex);
  		}
  	}
docs: Store the list of recent selections to a file on the file system.
  
  @param recent the recent selections