/**
  * @param SamlSpInfo $samlInfo
  * @throws \Symfony\Component\Security\Core\Exception\UsernameNotFoundException if the user could not created
  * @return \Symfony\Component\Security\Core\User\UserInterface
  */
 public function createUserFromSamlInfo(SamlSpInfo $samlInfo)
 {
     if ($this->userProvider instanceof UserManagerInterface) {
         return $this->userProvider->createUserFromSamlInfo($samlInfo);
     } else {
         throw new UsernameNotFoundException('Manager does not support creation of users');
     }
 }