public function setCurrentUser($sugarUserId)
    {
        // Retrieve my User
        $current_user = new \User;
        $current_user = $current_user->retrieve($sugarUserId);
        if (empty($current_user)) {
            throw new \InvalidArgumentException('Wrong User ID: ' . $sugarUserId);
        }
        $this->currentUser = $GLOBALS['current_user'] = $current_user;
        $this->sugarUserId = $sugarUserId;
        $this->getLogger()->info($this->logPrefix . "Changed current user to {$current_user->full_name}.");
    }