public List<TextLoaderFactory> getSourceTextLoaderFactories(ServletConfig config){
    String basePath=config.getInitParameter("TemplateBasePath");
    if (basePath==null)
      basePath=config.getServletContext().getInitParameter("TemplateBasePath");
    if (basePath==null)
      basePath="";
    List<TextLoaderFactory> list=new ArrayList<TextLoaderFactory>();
    list.add(new ServletContextTextLoaderFactory(config.getServletContext(), basePath));
    return list;
  }