throws Exception {
SimpleHash model = buildModel(stack, component);
Object prevTag = model.get("tag");
model.put("tag", component);
Environment env = getEnvironment(template, stack, model, writer);
env.process();
if (null != prevTag) {
model.put("tag", prevTag);
}
}