}
return result;
}
public static IStrategoTerm renameRules(IStrategoTerm term, String oldName, String newName) throws IOException {
IStrategoTerm result = null;
Context renameRulesContext = SugarJContexts.renameRulesContext();
try {
IStrategoTerm toldName = renameRulesContext.getFactory().makeString(oldName);
IStrategoTerm tnewName = renameRulesContext.getFactory().makeString(newName);
result = rename_rules_0_2.instance.invoke(renameRulesContext, term, toldName, tnewName);
}
catch (StrategoExit e) {
if (e.getValue() != 0 || result == null)
throw new RuntimeException("Stratego extraction failed", e);