SyncStateValueDecorator syncStateControl = new SyncStateValueDecorator(
ldapServer.getDirectoryService().getLdapCodecService() );
syncStateControl.setSyncStateType( SyncStateTypeEnum.MODDN );
syncStateControl.setEntryUUID( Strings.uuidToBytes(uuid.getString()) );
Response resp = generateResponse( session, req, entry );
resp.addControl( syncStateControl );
resp.addControl( modDnControl );
session.getIoSession().write( resp );
LOG.debug( "Sending {}", entry.getDn() );
}