// Use local util method for finding / creating child component...
childComponent = getChild(context, parent);
}
dispatchHandlers(context, BEFORE_ENCODE,
new BeforeEncodeEvent(childComponent));
// Add child components... (needs to be done here, LE's can't do it)
// Use check for instance of TC. If present we must instantiate its
// children as they were skipped when the tree was initially created.
if (parent instanceof TemplateComponent) {