PublisherConfiguration publisherConfig = Publisher.getPublisherConfiguration(requestContext,
serviceException);
try {
// Retrieve renderer according to publisher type and channel type
RenderIFace renderer = RenderManager.getInstance().getRenderer(publisherConfig);
// Store in session last used publisher name
Publisher.setLastPublisherName(publisherConfig.getName());
// Setup phase
renderer.prepareRender(requestContext, publisherConfig, getServletContext());
// Render phase
renderer.render(requestContext, publisherConfig, getServletContext());
} finally {
// Allow better garbage collection
publisherConfig.release();
}