code: protected TemplateLoader getAggregateTemplateLoader(TemplateLoader[] templateLoaders) {
          int loaderCount = (templateLoaders != null ? templateLoaders.length : 0);
          switch (loaderCount) {
              case 0:
                  if (log.isDebugEnabled()) {
                      log.debug("No FreeMarker TemplateLoaders specified; Can be used only inner template source");
                  }
                  return null;
              case 1:
                  if (log.isDebugEnabled()) {
                      log.debug("One FreeMarker TemplateLoader registered: " + templateLoaders[0]);
                  }
                  return templateLoaders[0];
              default:
                  TemplateLoader loader = new MultiTemplateLoader(templateLoaders);
                  if (log.isDebugEnabled()) {
                      log.debug("Multiple FreeMarker TemplateLoader registered: " + loader);
                  }
                  return loader;
          }
      }
docs: Return a TemplateLoader based on the given TemplateLoader list.
  If more than one TemplateLoader has been registered, a FreeMarker
  MultiTemplateLoader needs to be created.
  
  @param templateLoaders the final List of TemplateLoader instances
  @return the aggregate TemplateLoader