String localName = null;
final String property = ElementUtils.getAttributeValue(context,
attributes, XDIMESchemata.XHTML2_NAMESPACE, ATTR_NAME_PROPERTY);
final ExpandedName name = getAsExpandedName(property, context);
if (name != null) {
if (XDIMESchemata.XDIME2_MCS_NAMESPACE.equals(name.getNamespaceURI())
|| XDIMESchemata.DC_NAMESPACE.equals(name.getNamespaceURI())
|| "".equals(name.getNamespaceURI())){
// only set the result if the property has the right
// namespace. It might be mcs, dc or default (empty) namespace
localName = name.getLocalName();
}
} else {
throw new XDIMEException(LOCALIZER.format(
"illegal-meta-data-property-missing"));
}