protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
if (attribute.getLocalName().equals(LangBearing.XML_LANG_ATTR_LOCAL_NAME)
&& SAMLConstants.XML_NS.equals(attribute.getNamespaceURI())) {
LocalizedName name = (LocalizedName) samlObject;
LocalizedString nameStr = name.getName();
if (nameStr == null) {
nameStr = new LocalizedString();
}
nameStr.setLanguage(attribute.getValue());
name.setName(nameStr);
}
}