/** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement)
      throws MarshallingException {
    LocalizedURI name = (LocalizedURI) samlObject;

    if (name.getValue() != null) {
      ElementSupport.appendTextContent(domElement, name.getValue());
    }
  }
  /** {@inheritDoc} */
  protected void marshallAttributes(XMLObject samlObject, Element domElement)
      throws MarshallingException {
    LocalizedURI name = (LocalizedURI) samlObject;

    if (name.getXMLLang() != null) {
      Attr attribute =
          AttributeSupport.constructAttribute(
              domElement.getOwnerDocument(),
              XMLConstants.XML_NS,
              LangBearing.XML_LANG_ATTR_LOCAL_NAME,
              XMLConstants.XML_PREFIX);
      attribute.setValue(name.getXMLLang());
      domElement.setAttributeNodeNS(attribute);
    }
  }