code: public boolean revisionContainsTemplateFragmentWithoutIndex(int revId, String templateFragment) throws WikiApiException{
      	if(revApi==null){
      		revApi = new RevisionApi(wiki.getDatabaseConfiguration());
      	}
      	if(parser==null){
      		//TODO switch to SWEBLE
      		MediaWikiParserFactory pf = new MediaWikiParserFactory(
      				wiki.getDatabaseConfiguration().getLanguage());
      		pf.setTemplateParserClass(ShowTemplateNamesAndParameters.class);
      		parser = pf.createParser();
      	}
  
      	List<Template> tplList = parser.parse(revApi.getRevision(revId).getRevisionText()).getTemplates();
      	for(Template tpl:tplList){
      		if(tpl.getName().toLowerCase().startsWith(templateFragment.toLowerCase())){
      			return true;
      		}
      	}
      	return false;
      }
docs: Does the same as revisionContainsTemplateFragment() without using a template index
  
  @param revId
  @param templateFragment
  @return
  @throws WikiApiException