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