if (theme != null)
{
theme.init(page, decorationFactory, requestContext);
requestContext.setAttribute(PortalReservedParameters.PAGE_THEME_ATTRIBUTE, theme);
boolean solo = isSoloMode(requestContext);
SessionPathResolverCache sessionPathResolver = new SessionPathResolverCache( requestContext.getRequest().getSession() );
initDepthFragmentDecorations(requestContext, theme, page.getRootContentFragment(),
pageActionAccess, isAjaxRequest,
((DecorationFactoryImpl) decorationFactory).getResourceValidator(),
sessionPathResolver, (theme.isInvalidated() && !solo));