throw new IllegalArgumentException( msg );
}
int newId = messageId.incrementAndGet();
DeleteResponse resp = new DeleteResponseImpl( newId );
resp.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
try
{
session.delete( deleteRequest );
}
catch ( LdapException e )
{
LOG.warn( e.getMessage(), e );
resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
resp.getLdapResult().setDiagnosticMessage( e.getMessage() );
}
addResponseControls( deleteRequest, resp );
return resp;