private boolean interpreted;
public Template translate(Resource resource, Node root, Map<String, Class<?>> types)
throws ParseException, IOException {
if (interpreted && compiled) {
return new MixedTemplate(interpretedTranslator.translate(resource, root, types),
resource, root, types, compiledTranslator, mapConverter, logger);
} else if (interpreted) {
return interpretedTranslator.translate(resource, root, types);
} else {
return compiledTranslator.translate(resource, root, types);