// Transform the response
DelResponseCodec delRespCodec = (DelResponseCodec)response;
delRespCodec.addControl( response.getCurrentControl() );
delRespCodec.setMessageId( messageId );
DeleteResponse deleteResponse = convert( delRespCodec );
DeleteFuture deleteFuture = (DeleteFuture)responseFuture;
if ( deleteFuture == null )
{
LOG.error( "DeleteFuture is null" );
throw new LdapException( "DeleteFuture is null" );
}
if ( LOG.isDebugEnabled() )
{
if ( deleteResponse.getLdapResult().getResultCode() == ResultCodeEnum.SUCCESS )
{
// Everything is fine, return the response
LOG.debug( "Delete successful : {}", deleteResponse );
}
else