// Transform the response
ExtendedResponseCodec extResCodec = (ExtendedResponseCodec)response;
extResCodec.setMessageId( messageId );
extResCodec.addControl( response.getCurrentControl() );
ExtendedResponse extendedResponse = convert( extResCodec );
ExtendedFuture extendedFuture = (ExtendedFuture)responseFuture;
if ( extendedFuture == null )
{
LOG.error( "ExtendedFuture is null" );
throw new LdapException( "extendedFuture is null" );
}
// remove the listener from the listener map
if ( LOG.isDebugEnabled() )
{
if ( extendedResponse.getLdapResult().getResultCode() == ResultCodeEnum.SUCCESS )
{
// Everything is fine, return the response
LOG.debug( "Extended successful : {}", extendedResponse );
}
else