// Set the value attribute.
pattributes.setValue(attributes.getValue());
// Find the caption pane
PaneInstance captionPaneInstance = getPaneInstance(
pageContext, attributes.getCaptionPane());
if ((captionPaneInstance != null) &&
(captionPaneInstance.getFormat() != null)) {
pattributes.setCaptionContainerInstance(captionPaneInstance);
}
// And the entry pane
PaneInstance entryPaneInstance = getPaneInstance(
pageContext, attributes.getEntryPane());
if ((entryPaneInstance != null) &&
(entryPaneInstance.getFormat() != null)) {
pattributes.setEntryContainerInstance(entryPaneInstance);
}
// Set the styles for the caption
final String captionClass = attributes.getCaptionClass();