if (tag instanceof DoAction) {
DoAction doAction = (DoAction) tag;
doAction.setActions(rewriteActions(rw, doAction.getActions()));
} else if (tag instanceof DefineButton2) {
DefineButton2 defButton2 = (DefineButton2) tag;
defButton2.setEvents(rewriteEventHandlers(rw,
defButton2.getEvents()));
}
return tag;
}