if ( refreshNPersist ) // refreshAndPersist mode
{
contextCsn = sendContentFromLog( session, request, replicaLog, contextCsn );
cookie = LdapProtocolUtils.createCookie( replicaLog.getId(), contextCsn );
IntermediateResponse intermResp = new IntermediateResponseImpl( request.getMessageId() );
intermResp.setResponseName( SyncInfoValue.OID );
SyncInfoValue syncInfo = new SyncInfoValueDecorator(
ldapServer.getDirectoryService().getLdapCodecService(), SynchronizationInfoEnum.NEW_COOKIE );
syncInfo.setCookie( cookie );
intermResp.setResponseValue( ( ( SyncInfoValueDecorator ) syncInfo ).getValue() );
PROVIDER_LOG.info( "Sending the intermediate response to consumer {}, {}", replicaLog, syncInfo );
session.getIoSession().write( intermResp );