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