// values in containing templates, may be null.
TemplateModel containing = (TemplateModel) pipelineContext.findObject(
TemplateModel.class);
// Create the template process and add it to the pipeline.
TemplateProcess process = new TemplateProcess(containing);
dynamicProcess.addProcess(process);
// Push the template model onto the stack so it can be picked up by
// nested elements.
TemplateModel model = process;