protected function processPrivateTags($data)
    {
        $tagIdList = [];
        $this->PrivateTags()->removeAll();
        foreach ($data as $tagData) {
            $tagIdList[] = $tagData['id'];

            // Find a matching PrivateTag or create an new one
            $tag = PrivateTag::get()->filter(['HailID' => $tagData['id']])->first();

            if (!$tag) {
                $tag = new PrivateTag();
            }

            $tag->OrganisationID = $this->OrganisationID;
            $tag->HailOrgID = $this->HailOrgID;
            $tag->HailOrgName = $this->HailOrgName;

            // Update the Hail Tag
            $tag->importHailData($tagData);
            if (!$this->PrivateTags()->byID($tag->ID)) {
                $this->PrivateTags()->add($tag);
            }
        }
    }