return new CachedPathsExpressionTranslator(pathLookup);
}
private ScriptReplaceStrategy getReplaceStrategy(ExpressionTranslator translator) {
EntityPersistor persistor = view.getProjectPersistor();
ScriptReplaceStrategy persistingStrategy = new PersistingScriptReplaceStrategy(persistor, translator);
if (IN_PAGE_CHANGES_SUPPORTED) {
ScriptReplaceStrategy openPageStrategy = new OpenPageReplaceStrategy();
return new OrderedScriptReplaceStrategy(openPageStrategy, persistingStrategy);
} else {
return persistingStrategy;
}
}