TemplateContext templateContext, ELResolver globals, TagRegistry registry) {
this.registry = registry;
this.templateContext = templateContext;
this.elContext = expressions.newELContext(globals,
new GadgetELResolver(templateContext.getGadget().getContext()),
new TemplateELResolver(templateContext),
new ElementELResolver());
DocumentFragment result = template.getOwnerDocument().createDocumentFragment();
processChildNodes(result, template);