public void execute(Environment env,
Map params, TemplateModel[] loopVars,
TemplateDirectiveBody body) throws TemplateException, IOException {
String name = DirectiveUtils.getRequiredParam(params, "name");
TemplateDirectiveBodyOverrideWraper overrideBody = DirectiveUtils.getOverrideBody(env, name);
if(overrideBody == null) {
if(body != null) {
body.render(env.getOut());
}
}else {
DirectiveUtils.setTopBodyForParentBody(env, new TemplateDirectiveBodyOverrideWraper(body,env), overrideBody);
overrideBody.render(env.getOut());
}
}