public function getAccount()
{
if ($this->initialized === false) {
$this->initialize();
}
/** @var $token TokenInterface */
foreach ($this->getAuthenticationTokens() as $token) {
if ($token->isAuthenticated() === true) {
return $token->getAccount();
}
}
return null;
}