// Transform the response
ModifyResponseCodec modRespCodec = (ModifyResponseCodec)response;
modRespCodec.setMessageId( messageId );
modRespCodec.addControl( response.getCurrentControl() );
ModifyResponse modifyResp = convert( modRespCodec );
ModifyFuture modifyFuture = (ModifyFuture)responseFuture;
if ( modifyFuture == null )
{
LOG.error( "ModifyFuture is null" );
throw new LdapException( "ModifyFuture is null" );
}
if ( LOG.isDebugEnabled() )
{
if ( modifyResp.getLdapResult().getResultCode() == ResultCodeEnum.SUCCESS )
{
// Everything is fine, return the response
LOG.debug( "ModifyFuture successful : {}", modifyResp );
}
else