Layout portalLayout = service.getEntryLayout(null);
if ( portalLayout == null ) {
portalLayout = service.getComponentManager().getProfileManager().getPortalLayout(null, null);
}
Renderer portalLayoutRenderer = service.getComponentManager().getRenderer( portalLayout.getRendererName());
contentHandler.startDocument();
portalLayoutRenderer.toSAX(portalLayout, service, contentHandler);
contentHandler.endDocument();
} catch (ServiceException ce) {
throw new SAXException("Unable to lookup portal service.", ce);
} catch (Exception e) {
getLogger().error("Caught exception", e);