code: private void process( Collection<File> templateFiles ) {
  
  		// Compile them all
  		Collection<TemplateEntry> templateEntries = new ArrayList<> ();
  		for( File f : templateFiles ) {
  			final TemplateEntry templateEntry = compileTemplate( f );
  			if( templateEntry != null )
  				templateEntries.add( templateEntry );
  		}
  
  		// Add all the template entries
  		this.lock.writeLock().lock();
  		try {
  			for( final TemplateEntry te : templateEntries )
  				this.fileToTemplate.put( te.getTemplateFile(), te );
  
  		} finally {
  			this.lock.writeLock().unlock();
  		}
  
  		// Notify the templating manager
  		this.manager.processNewTemplates( templateEntries );
  	}
docs: Processes (compiles and registers) a collection of template files.
  @param templateFiles a non-null collection