public int doEndTag() throws JspException {
// get the ContentRenderer
RenderRequest renderRequest = getRenderRequest();
PortletSession session = renderRequest.getPortletSession();
ContentRenderer renderer = (ContentRenderer) renderRequest.getAttribute(RENDERER_PARAM);
PLinkReplacer pLinkReplacer = (PLinkReplacer) renderRequest.getAttribute(PLINK_PARAM);
CRConfigUtil crConf = (CRConfigUtil) renderRequest.getAttribute(CRCONF_PARAM);
try {
if (object != null) {
try {
String content = renderer.renderContent(object, contentAttribute, true, pLinkReplacer, false, null);
/* Get the ContentPostProcessor-Config from the PortletSession or instance it from the Config */
@SuppressWarnings("unchecked")
ConcurrentHashMap<String, ContentPostProcesser> confs = (ConcurrentHashMap<String, ContentPostProcesser>) session
.getAttribute(SESSION_KEY_CONTENTPOSTPROCESSOR_CONF, PortletSession.APPLICATION_SCOPE);