final IPerson person = userPreferencesManager.getPerson();
final UserProfile userProfile = userPreferencesManager.getCurrentProfile();
final long renderTime = cr.getRenderTime();
final boolean renderedFromCache = cr.isRenderedFromCache();
final ChannelRenderedInLayoutPortalEvent channelRenderedEvent = new ChannelRenderedInLayoutPortalEvent(this, person, userProfile, channelDesc, parentNode, renderTime, renderedFromCache);
EventPublisherLocator.getApplicationEventPublisher().publishEvent(channelRenderedEvent);
} else {
handleRenderingError(request, response, channelSubscribeId,contentHandler,null,renderingStatus,"unsuccessful rendering","unsuccessful rendering",false);
return;
}