// Transform the response
ModifyDNResponseCodec modDnRespCodec = (ModifyDNResponseCodec)response;
modDnRespCodec.setMessageId( messageId );
modDnRespCodec.addControl( response.getCurrentControl() );
ModifyDnResponse modifyDnResp = convert( modDnRespCodec );
ModifyDnFuture modifyDnFuture = (ModifyDnFuture)responseFuture;
if ( modifyDnFuture == null )
{
LOG.error( "ModifyDNFuture is null" );
throw new LdapException( "ModifyDNFuture is null" );
}
if ( LOG.isDebugEnabled() )
{
if ( modifyDnResp.getLdapResult().getResultCode() == ResultCodeEnum.SUCCESS )
{
// Everything is fine, return the response
LOG.debug( "ModifyDN successful : {}", modifyDnResp );
}
else