public boolean hasResource(String name, Locale locale) {
        name = UrlUtils.cleanName(name);
        locale = cleanLocale(locale);
        return stringLoader.exists(name, locale) || loader.exists(name, locale);
    }
public boolean hasResource ( String name , Locale locale ) { name = UrlUtils . cleanName ( name ) ; locale = cleanLocale ( locale ) ; return stringLoader . exists ( name , locale ) || loader . exists ( name , locale ) ; }
Tests whether the resource denoted by this abstract pathname exists.

@param name   - template name
@param locale - resource locale
@return exists
@see #getEngine()