public Template locate(Class<?> type, String templateName) {
        String path = new ClasspathBuilder()
            .appendFullyQualifiedClassName(type)
            .appendVerbatim(templateName)
            .setExtension("sql.ftl")
            .build();

        try {
            return config.getFreemarkerConfiguration().getTemplate(path);
        } catch (Exception e) {
            throw new IllegalStateException("Failed to load Freemarker template " + templateName + " in " + path, e);
        }
    }
@deprecated this static method does not respect configuration, use {@link FreemarkerConfig#createLocator()}
freemarker/src/main/java/org/jdbi/v3/freemarker/FreemarkerSqlLocator.java