int bodyNode = 1;
if (node.jjtGetNumChildren() == 3)
bodyNode = 2;
node.jjtGetChild(bodyNode).render(adapter, bodyContent);
Factory factory = PortletContext.getContext().getSiteMeshFactory();
Decorator decorator = factory.getDecoratorMapper().getNamedDecorator(request, decoratorName);
if (decorator != null) {
com.opensymphony.module.sitemesh.PageParser parser = factory.getPageParser("text/html");
HTMLPage page = (HTMLPage) ((FastPageParser) parser).parse(new StringReader(bodyContent.toString()));
Context context = VelocityManager.getInstance()
.createContext(ActionContext.getContext().getValueStack(), request, response);
context.put("page", page);
if (node.jjtGetNumChildren() == 3)