templateCtx.put("subContentIdSub", subContentIdSub);
templateCtx.put("subDataResourceTypeId", subDataResourceTypeId);
final Map savedValues = new HashMap();
FreeMarkerWorker.saveContextValues(templateCtx, saveKeyNames, savedValues);
return new LoopWriter(out) {
public int onStart() throws TemplateModelException, IOException {
String renderOnStart = (String)templateCtx.get("renderOnStart");
if (renderOnStart != null && renderOnStart.equalsIgnoreCase("true")) {
renderMenu();