*
* @throws Exception in case of any problems encountered while searching
*/
private void doSyncSearch( SynchronizationModeEnum syncType ) throws Exception
{
SyncRequestValueControl syncReq = new SyncRequestValueControl();
syncReq.setMode( syncType );
if ( syncCookie != null )
{
LOG.debug( "searching with searchRequest, cookie '{}'", StringTools.utf8ToString( syncCookie ) );
syncReq.setCookie( syncCookie );
}
searchRequest.add( syncReq );
// Do the search