code: public Collection<TemplateEntry> findTemplatesForApplication( final String appName ) {
  
  		final Collection<TemplateEntry> result = new ArrayList<> ();
  		this.lock.readLock().lock();
  		try {
  			result.addAll( TemplateUtils.findTemplatesForApplication( appName, this.fileToTemplate.values()));
  
  		} finally {
  			this.lock.readLock().unlock();
  		}
  
  		return result;
  	}
docs: Finds the templates that can apply to a given application.
  <p>The templates contained in the returned set may have been removed at the time they are accessed.</p>
  
  @param appName the name of the application, or {@code null} to only get the global templates
  @return a non-null list