*/
public Element toDsml( Element root )
{
Element element = super.toDsml( root );
AddRequest request = ( AddRequest ) instance;
// DN
if ( request.getEntry() != null )
{
element.addAttribute( "dn", request.getEntry().getDn().getUpName() );
}
// Attributes
Entry entry = request.getEntry();
if ( entry != null )
{
for ( EntryAttribute attribute : entry )
{
Element attributeElement = element.addElement( "attr" );