protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
if (attribute.getLocalName().equals(ServiceDescription.LANG_ATTRIB_NAME)
&& attribute.getNamespaceURI().equals(SAMLConstants.XML_NS)) {
ServiceDescription description = (ServiceDescription) samlObject;
LocalizedString descStr = description.getDescription();
if (descStr == null) {
descStr = new LocalizedString();
}
descStr.setLanguage(attribute.getValue());
description.setDescription(descStr);
}
}