private ThymeLeafTemplateImplementation getTemplateByFile(File templateFile) {
        try {
            return getTemplateByURL(templateFile.toURI().toURL());
        } catch (MalformedURLException e) {  //NOSONAR
            // Ignored.
        }
        return null;
    }
private ThymeLeafTemplateImplementation getTemplateByFile ( File templateFile ) { try { return getTemplateByURL ( templateFile . toURI ( ) . toURL ( ) ) ; } catch ( MalformedURLException e ) { } return null ; }
Gets the template object using the given file as backend.

@param templateFile the file
@return the template object, {@literal null} if not found