}
int newId = messageId.incrementAndGet();
modRequest.setMessageId( newId );
ModifyResponse resp = new ModifyResponseImpl( newId );
resp.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
try
{
session.modify( modRequest );
}
catch ( LdapException e )
{
LOG.warn( e.getMessage(), e );
resp.getLdapResult().setResultCode( ResultCodeEnum.getResultCode( e ) );
resp.getLdapResult().setDiagnosticMessage( e.getMessage() );
}
addResponseControls( modRequest, resp );
return resp;