// Javadoc inherited from super class.
public int elementStart (MarinerRequestContext context,
PAPIAttributes papiAttributes)
throws PAPIException {
MarinerPageContext pageContext
= ContextInternals.getMarinerPageContext (context);
PickleBlockAttributes attributes = (PickleBlockAttributes) papiAttributes;
// Try and find the pane with the specified name, if it could not be
// found then return and skip the element body.
String paneName = attributes.getPane ();
if (paneName != null) {
FormatReference formatRef = FormatReferenceParser.parsePane(paneName, pageContext);
Pane pane = pageContext.getPane(formatRef.getStem());
NDimensionalIndex paneIndex = formatRef.getIndex();
if (pane == null) {
skipped = true;
return SKIP_ELEMENT_BODY;
}
paneInstance = (AbstractPaneInstance)
pageContext.getFormatInstance(pane, paneIndex);
if (paneInstance.ignore()) {
skipped = true;
return SKIP_ELEMENT_BODY;
}
pageContext.pushContainerInstance (paneInstance);
}
// The super class will handle initialising the protocol attributes and
// calling the protocol.
return super.elementStart (context, papiAttributes);