Not sure about the applicability of this method. Looks pretty straightforward having the DirectoryResource reference returned in getTemplateDirectory(String provider)