module.beginNestedInclusion();
}
module.writeOpenLayout(attributes);
Fragment fragment = formatRendererContext.getCurrentFragment();
if (fragment == null) {
if (logger.isDebugEnabled()) {
String name =
deviceLayout != null ? deviceLayout.getName():null;
logger.debug("Writing out the Layout named "
+ name + " to the page");
// Write the format tree
}
Format root = deviceLayout.getRootFormat();
if (root != null) {
FormatInstance rootInstance =
formatRendererContext.getFormatInstance(
root, index);
formatRendererContext.renderFormat(rootInstance);
} else {
if (logger.isDebugEnabled()) {
logger.debug("Empty layout");
}
}
} else {
if (logger.isDebugEnabled()) {
logger.debug("Writing out the fragment named "
+ fragment.getName() + " to the page");
}
// Write out the fragment and the fragment link list which contains
// links to the fragment's parent and peer fragments.
if (!module.getSupportsFragmentLinkListTargetting()) {
// Write out parent/peer fragment link list *after* the fragment.