content =(javax.jcr.Node)contentObject;
}else {
throw new TemplateProcessingException("Cannot cast "+contentObject.getClass()+" to javax.jcr.Node");
}
final RenderingEngine renderingEngine = Components.getComponent(RenderingEngine.class);
final RenderingContext renderingContext = renderingEngine.getRenderingContext();
ComponentElement componentElement = createElement(renderingContext);
componentElement.setContent(content);
processElement(element, attributeName, componentElement);