docs: protected Template getTemplate(File file) throws ServletException {
          String key = file.getAbsolutePath();
          Template template = findCachedTemplate(key, file);
  
          //
          // Template not cached or the source file changed - compile new template!
          //
          if (template == null) {
              try {
                  template = createAndStoreTemplate(key, new FileInputStream(file), file);
              } catch (Exception e) {
                  throw new ServletException("Creation of template failed: " + e, e);
              }
          }
  
          return template;
      }