* Create the SyncStateValue control
*/
private SyncStateValue createControl( DirectoryService directoryService, SyncStateTypeEnum operation, Entry entry )
throws LdapInvalidAttributeValueException
{
SyncStateValue syncStateValue = new SyncStateValueDecorator( directoryService.getLdapCodecService() );
syncStateValue.setSyncStateType( operation );
String uuidStr = entry.get( SchemaConstants.ENTRY_UUID_AT ).getString();
syncStateValue.setEntryUUID( Strings.uuidToBytes( uuidStr ) );
syncStateValue.setCookie( getCookie( entry ) );
return syncStateValue;
}