}
public static void runTemplate(String language, String name, Writer writer, Map<String, Object> context) throws IOException {
FileObject file = CommonsVfsContainer.resolveFile(name);
CompiledTemplate template = getTemplate(language, file);
template.run(file, writer, context);
}
public static CompiledTemplate getTemplate(String language, FileObject file) throws IOException {
return getTemplateManager().compileTemplate(language, "top", 0, 0, file);
}