public function refreshUser(UserInterface $user)
 {
     if ($this->supportsClass(get_class($user))) {
         return $this->repository->findByPk((string) $user->getId());
     } else {
         throw new UnsupportedUserException("Don't know to manage a " . get_class($user));
     }
 }