public function getUserMail(User $user)
    {
        $userMail = current($user->getPropertyValues(GenerisRdf::PROPERTY_USER_MAIL));
        
        if (!$userMail || !filter_var($userMail, FILTER_VALIDATE_EMAIL)) {
            throw new Exception('User email is not valid.');
        }
        
        return $userMail;
    }