question: @ NotNull private File resolveName ( @ NotNull String name ) throws IOException { File file ; if ( name . startsWith ( ROOT ) ) { file = new File ( myTemplateRootFolder , name . substring ( ROOT . length ( ) ) ) ; } else if ( myLastTemplateFolders != null ) { file = new File ( myLastTemplateFolders . peek ( ) , name ) ; } else { file = new File ( myTemplateRootFolder , name ) ; } return file . getCanonicalFile ( ) ; }
target:  Resolve a Freemarker name reference.