private function fetchUserStoreToken(Criteria
$criteria, Context
$context): ?string
{ /** @var UserEntity|null $user */
$user =
$this->userRepository->
search($criteria,
$context)->
first();
if ($user === null
) { return null;
} return $user->
getStoreToken();
} private function getLicenseDomain(): string
{ /** @var string $domain */
$domain =
$this->systemConfigService->
get(self::CONFIG_KEY_STORE_LICENSE_DOMAIN
) ?? '';
return $domain;
}}