else
{
element = new DefaultElement( EXTENDED_RESPONSE_TAG );
}
ExtendedResponse extendedResponse = ( ExtendedResponse ) getDecorated();
// LDAP Result
LdapResultDsml ldapResultDsml = new LdapResultDsml( getCodecService(),
getDecorated().getLdapResult(), getDecorated() );
ldapResultDsml.toDsml( element );
// ResponseName
String responseName = extendedResponse.getResponseName();
if ( responseName != null )
{
element.addElement( "responseName" ).addText( responseName );
}