code: private void processRevisions()
  	{
  		logger.info("Processing revisions, extracting template information ...");
  		RevisionIterator revisionIter=null;
  		try{
  			revisionIter = new RevisionIterator(dbConf);
  
  			int revCounter = 0;
  			while (revisionIter.hasNext()) {
  				revCounter++;
  
  				if (revCounter % VERBOSITY == 0) {
  					logger.info("{} revisions processed ...", revCounter);
  				}
  
  				Revision curRevision = revisionIter.next();
  				int curRevisionId = curRevision.getRevisionID();
  
  				fillMapWithTemplateData(curRevision.getRevisionText(),
  						revisionFilter, curRevisionId, TPLNAME_TO_REVISIONIDS);
  			}
  		}catch(WikiApiException e){
  			logger.error("Error initializing Revision Iterator", e);
  		}finally{
  			if(revisionIter!=null){
  				try{
  					revisionIter.close();
  				}catch(SQLException e){
  					logger.error("Error closing RevisionIterator", e);
  				}
  			}
  		}
  	}
docs: Processes only revision templates using the Revision Iterator