fn add_item(
    item_state: &Arc<Mutex<CrossDomainItems>>,
    item: CrossDomainItem
) -> u32