*/
public Element toDsml( Element root )
{
Element element = super.toDsml( root );
CompareRequest request = ( CompareRequest ) getDecorated();
// Dn
if ( request.getName() != null )
{
element.addAttribute( "dn", request.getName().getName() );
}
// Assertion
Element assertionElement = element.addElement( "assertion" );
if ( request.getAttributeId() != null )
{
assertionElement.addAttribute( "name", request.getAttributeId() );
}
if ( request.getAssertionValue() != null )
{
assertionElement.addElement( "value" ).setText( request.getAssertionValue().getString() );
}
return element;
}