CodeTemplate template = manager==null ? null :
manager.getTemplate(rsta);
// A non-null template means modify the text to insert!
if (template!=null) {
template.invoke(rsta);
}
// No template - insert default text. This is
// exactly what DefaultKeyTypedAction does.
else {