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