/**
* {@inheritDoc}
*/
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
ServiceDescription description = (ServiceDescription) samlObject;
if (description.getDescription() != null) {
Attr attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), SAMLConstants.XML_NS,
ServiceDescription.LANG_ATTRIB_NAME, SAMLConstants.XML_PREFIX);
attribute.setValue(description.getDescription().getLanguage());
domElement.setAttributeNodeNS(attribute);
}
}