pageContext.pushContainerInstance(paneInstance);
} else if (pageContext.getCurrentPane() == null) {
// this element doesn't have a pane name specified and the pane stack is
// empty. This is not allowed.
throw new PAPIException(
exceptionLocalizer.format("pane-name-not-found"));
}
// Fake an open element so that whitespace is handled normally since we
// have no element to represent pane at the moment.