metaData = context.getPageMetaData();
} else {
metaData = context.getElementMetaData(id);
}
if (multipleInstancesAllowed()) {
metaData.addPropertyValue(propertyName, content);
} else {
if (metaData.setPropertyValue(propertyName, content) != null) {
throw new XDIMEException(LOCALIZER.format(
"meta-property-occurrence-error", propertyName));
}