if (containerInstance != null) {
pageContext.pushContainerInstance(containerInstance);
}
if (layoutContext != null) {
pageContext.pushDeviceLayoutContext(layoutContext);
// Make sure that the device layout context is updated with
// the fragmentation state.
try {
pageContext.initialiseDeviceLayoutContext(