public static ST findStringTemplate(Class<?> type, String name) {
        STGroup group = findStringTemplateGroup(type);

        if (!group.isDefined(name)) {
            throw new IllegalStateException("No StringTemplate group " + name + " for class " + type);
        }

        return group.getInstanceOf(name);
    }
Locates SQL for the given type and name. Example: Given a type <code>com.foo.Bar</code> and a name of
<code>baz</code>, loads a StringTemplate group file from the resource named <code>com/foo/Bar.sql.stg</code> on
the classpath, and returns the template with the given name from the group.

@param type the type that "owns" the given StringTemplate group file. Dictates the filename of the
            StringTemplate group file on the classpath.
@param name the template name within the StringTemplate group.
@return the located SQL.
stringtemplate4/src/main/java/org/jdbi/v3/stringtemplate4/StringTemplateSqlLocator.java