String directiveName, Iterable<String> toEscape, String soyUtilsPath)
throws Exception {
List<String> output = Lists.newArrayList();
Context context = new ContextFactory().enterContext();
context.setOptimizationLevel(-1); // Only running once.
ScriptableObject globalScope = context.initStandardObjects();
globalScope.defineProperty(
"navigator", Context.javaToJS(new Navigator(), globalScope), ScriptableObject.DONTENUM);
Reader soyutils = new InputStreamReader(new FileInputStream(soyUtilsPath), Charsets.UTF_8);
try {