//if content is plain text
if(!isContentRenderRequired){
rootMap.put("content", getContent());
}
String name = isContentRenderRequired ? renderer.prepareWorkingTemplate(getLayout(), isValidLayout,
getContent(), isContentRenderRequired,
getSource().getSourceEntry())
: renderer.getLayoutWorkingTemplate(getLayout());
String output = renderer.render(name, rootMap);
// String output = getRenderer().render(getLayout(), getContent(), getSource().getSourceEntry(), rootMap);