@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();
}

@ 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 ( ) ; }
resolve a freemarker name reference .
