public function initializeObject()
{
$domain = $this->domainRepository->findOneByActiveRequest();
// Set active asset collection to the current site's asset collection, if it has one, on the first view if a matching domain is found
if ($domain !== null && !$this->browserState->get('activeAssetCollection') && $this->browserState->get('automaticAssetCollectionSelection') !== true && $domain->getSite()->getAssetCollection() !== null) {
$this->browserState->set('activeAssetCollection', $domain->getSite()->getAssetCollection());
$this->browserState->set('automaticAssetCollectionSelection', true);
}
}