{
try
{
//System.out.println( "Init replication on Provider" );
// First extract the Sync control from the request
SyncRequestValue syncControl = ( SyncRequestValue ) request.getControls().get(
SyncRequestValue.OID );
// cookie is in the format <replicaId>;<Csn value>
byte[] cookieBytes = syncControl.getCookie();
if ( cookieBytes == null )
{
// No cookie ? We have to get all the entries from the server
doInitialRefresh( session, request );