final FormatInstance instance)
throws RendererException {
try {
if (!instance.isEmpty()) {
Pane pane = (Pane) instance.getFormat();
AbstractPaneInstance paneInstance = (AbstractPaneInstance) instance;
// Initialise the attributes.
PaneAttributes attributes = paneInstance.getAttributes();
// Style the format.
String styleClass = paneInstance.getStyleClass();
FormatStylingEngine formatStylingEngine =
context.getFormatStylingEngine();
Styles formatStyles = formatStylingEngine.startStyleable(
pane, styleClass);
attributes.setStyles(formatStyles);