/**
* {@inheritDoc}
*/
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
Keywords words = (Keywords) samlObject;
if (words.getXMLLang() != null) {
Attr attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), SAMLConstants.XML_NS,
LangBearing.XML_LANG_ATTR_LOCAL_NAME, SAMLConstants.XML_PREFIX);
attribute.setValue(words.getXMLLang());
domElement.setAttributeNodeNS(attribute);
}
}