protected function isUsernameInUse($username, User $user)
    {
        return ($this->userManager->hasUserForUsername($username) && $this->userManager->getUserForUsername($username)->getUuid() != $user->getUuid());
    }