throws PAPIException {
MarinerPageContext pageContext =
ContextInternals.getMarinerPageContext(context);
RegionAttributes attributes = (RegionAttributes) papiAttributes;
if (logger.isDebugEnabled()) {
logger.debug("RegionElement start " + attributes.getName());
}
String regionName = attributes.getName();
if (regionName == null) {
logger.error("region-name-missing");
throw new PAPIException(
exceptionLocalizer.format("region-name-missing"));
}
FormatReference formatRef =
FormatReferenceParser.parse(regionName, pageContext);
Region region = pageContext.getRegion(formatRef.getStem());
NDimensionalIndex regionIndex = formatRef.getIndex();
if (region == null) {
logger.info("region-missing", new Object[]{attributes.getName()});
skipped = true;
return SKIP_ELEMENT_BODY;
}
regionInstance = (RegionInstance) pageContext.getFormatInstance(